A large part of my life is writing software. I do it for a living. I do it for
fun. I do it to learn new things. Lately I've been doing it to automate
tedious tasks. Either way, I plan on writing frequently about code I've been working on or with. Doing so without
a mechanism to properly format, colorize and highlight this would be a bad idea; most anyone who works with
computer software is used to seeing it in a particular way.
I've been looking into some open source options for doing this. So far I've settled on three to try out. Whichever works best and is easiest to use will likely win. (Support for languages I use a lot will also be a deciding factor!). Here are our contestants: Prettify, SyntaxHighlighter, and PrismJS. More on these next time!
I've been looking into some open source options for doing this. So far I've settled on three to try out. Whichever works best and is easiest to use will likely win. (Support for languages I use a lot will also be a deciding factor!). Here are our contestants: Prettify, SyntaxHighlighter, and PrismJS. More on these next time!
PrismJS
Prettify
SyntaxHighlighter