Search code examples
c++cwordpressscriptingcolorize

What's a good Wordpress extension for coloring C/C++/script code?


My research group uses a Wordpress blog. Frequently I want post snippets or even entire short programs I've been working on to it, with most of my code being written in C/C++ or scripting languages (Bash, TCL, etc).

I figure that there have to be some good extensions to Wordpress to colorify code since so many people use it. I'm looking for something similar to StackOverflow's colorizing system, though I realize it may not be quite as robust!

Can you point me to some of your favorites/the ones you think are most reliable?

Thanks in advance!


Solution

  • This was the first I investigated when I started a Wordpress blog. You can use Wordpress' sourcecode shortcode, as exemplified here. It requires JavaScript on the client side (otherwise it renders as just preformatted text).

    Cheers & hth.,