HomeRamblings  ⁄  textpow

textpow

Ultraviolet gives new life to Syntax highlighting

I am tired of Google's Syntax highlighter.  If I accidentally switch to Visual mode in the editor and do some edits and switch back to HTML mode, then I lose the class="code" moniker and I have to go through the entire post and fix. Another drawback I have with Google Syntax highlighter is that the page renders without highlighting and then all the code listings change to syntax highlighted text a few moments later. Introducing [Ultraviolet][1], a syntax highlighter supporting over 50 syntaxes and any [TextMate][2] theme.  Ultraviolet is based on [Oniguruma][3], a regular expression library that comes standard with Ruby 1.9. Ultraviolet requires a little more effort for me to cut and paste, but I am definitely much happier with the end results and Wordpress no longer mungs my posts. Only real complaint I have is that I can't… read more