Tools for styling code snippet in a web page

Wrap the code in the <code> or <pre> tags, depending on whether it’s an inline snippet or a block of code.

Also, search the web for “wordpress syntax highlighter,” which will tell you about several wordpress plugins that can color and style code elements for various programming languages.

Finally, the WordPress StackExchange site will probably have some great answers for you: https://wordpress.stackexchange.com/