code effect in html/blog

I’m using Eclipse to write php and naturally I get color coding like all IDEs do.

How do I get the same effect in a blog?

Read More

See this example (scroll down to see the code colors), he has full colors, green, red, blue, pretty acceptable I’d say

http://www.tellinya.com/read/2007/06/15/20.html

Is there something that’s standalone PHP that can achieve this, or do I need a plugin and install a CMS? I’d prefer standalone I guess if possible.

Related posts

Leave a Reply

6 comments

  1. In the example you’ve shown, the author is encapsulating the code snippet among <code></code> tags to preserve indentation and he’s using style information to set the colors.

    You could probably use some javascript code to enable “syntax highlighting” for PHP that is what you want.

    You might want to have a look, for example, to:

    http://softwaremaniacs.org/soft/highlight/en/