Syntax highlighting is a way of making blocks of code easier to read by using colours to highlight different keywords and sections within the text.

The Help Authoring Tool Help and Manual 5 contains a syntax highlighting system for a limited number of programming languages, but it does not currently support languages like PHP or JavaScript, and new languages cannot be added by the end user. Fortunately, you can add this functionality to Help and Manual output by using the JavaScript library jQuery, and the associated syntax highlighter Chili.

Click here to view my tutorial on adding custom syntax highlighting to Help and Manual 5 by using jQuery and Chili.

One Response to “Adding custom syntax highlighting to Help and Manual 5”
  1. BillSaysThis (Bill Lazar) says:

    Have you seen the SyntaxHighlighter project (http://code.google.com/p/syntaxhighlighter/)? It’s what we use in the Aptana docs and blog.