Home » Questions » Computers [ Ask a new question ]

Is there a blog engine that handles computer code highlighting well? [closed]

Is there a blog engine that handles computer code highlighting well? [closed]

I am looking for a (free) blog engine (WordPress...) that handles sections of code well. That is, I could just markup a portion of my entry as code and it would indent/format appropriately, much like Server Fault does right below:

Asked by: Guest | Views: 20
Total answers/comments: 4
Guest [Entry]

"WordPress uses plugins which are very easy to install to handle this. I chose SyntaxHighlighter for my blog because it was easy to use, supported the languages I was after, and worked the best. You can go to my profile for a link to my blog to see some examples.

This link compares a bunch of them, some of them have themes, etc., one of them should work for you. You usually just use some sort of tag in your post like: [sourcecode lang=perl] print foo [/sourcecode] and the plugin takes care of the rest."
Guest [Entry]

"You could use SyntaxHighlighter.

SyntaxHighlighter is here to help a developer/coder to post code snippets online with ease and have it look pretty. It's 100% Java Script based and it doesn't care what you have on your server."
Guest [Entry]

"You also have the option of converting your code directly into colored/highlighted HTML.
Check out Pygments. You enter the code. It gives you the highlighted syntax.

It is a generic syntax highlighter for general use in all kinds of software such as forum systems, wikis or other applications that need to prettify source code. Highlights are:

a wide range of common languages and markup formats is supported

special attention is paid to details that increase highlighting quality

support for new languages and formats are added easily; most languages use a simple regex-based lexing mechanism

a number of output formats is available, among them HTML, RTF, LaTeX and ANSI sequences

it is usable as a command-line tool and as a library

... and it highlights even Brainf*ck!"
Guest [Entry]

Calepin is a static blog publisher that supports syntax highlighting out of the box.