Sun
Jun 25
2006

Syntax Highlighting in WordPress

Syntax highlighting with iG:Syntax Hiliter is mostly working now. This is the best excuse for hosting my own WordPress installation. I’ve found a few tweaks are needed to get this going:

  • I am not using a WYSIWYG editor. This is the biggest problem so far. The built-in rich editor collapses whitespace in my code so you lose indentation. I have been experimenting with other editors.
  • Updated the .syntax_hilite style in syntax_hilite_css.css with text-align:left since my current theme uses justified text. Also removed the fixed width statements.
  • Tweaked the C# color scheme to match Visual Studio.

Leave a reply

© 2009 Brian Low. All rights reserved.