How to apply syntax highlighting to code snippets in MadCap Flare

June 30th, 2009    2 Comments

How to apply syntax highlighting to code snippets in MadCap Flare.

The anonymous blogger at kungfuwit.wordpress.com describes how to use the SHJS (Syntax Highlighting for JavaScript) resources to make code snippets easier to digest, and easier on the eye.

My documentation rarely ever contains code, but it's the kind of thing that may come in useful one of these days.

Note: He/she says this doesn't work in WebHelp - only for .chm - but there's a workaround I'll blog myself when I get some time.

Comments

  1. User Gravatar Eilan said:

    August 24th, 2010 at 9:36 pm (#)

    Hello, did you ever get to blog the workaround for this? I have a lot of code snippets in my documentation and it's a nightmare having to manage them. Note: I create my help in WebHelp.

  2. User Gravatar itauthor said:

    August 27th, 2010 at 8:22 pm (#)

    Sorry, I can't remember what workaround I was referring to. I only very rarely have code snippets in the documentation I write, so it's not something I have to think about often.

    This may be a good solution: http://alexgorbatchev.com/SyntaxHighlighter/manua...

Leave a comment