Examples of program source code are much easier to read if reserved words, comments, identifiers and so on are highlighted as they are in a modern programming editor. SnipSVG's Syntax Highlighting function does this for you. It understands the syntax of many languages.
The highlighter is pre-configured with standard formatting for all these languages, but you can change the formatting yourself for every element type in every language to suit your own preferences. (Note that you must do this before applying your formatting. Changing highlighting settings does not change the formatting of code that has already been highlighted.)
Tip: Use SnipSVG to visualize source code snippets
•Format source code snippets to highlight keywords, identfiers and other elements.
•Add a box or frame as the text background to make code snippets visually stand out.
•Save code snippets in SVG format: text stays text and users can select, copy and paste the examples.
•Click on the Syntax Highlighter button in Text Format, then select Customize....
Font color and style:
You can define the font style and color for the supported elements for each highlighter language. The font family, font size and Dark Background option are global for all syntax highlighters.
Format text for dark backgrounds:
Normal text in code examples has a black color. If you are going to place your code example on a dark background, black text would be hard to read. This option switches all black text to white.
Restoring the default settings:
Clicking on Reset Defaults restores all the syntax highlighter's settings for the current language to Help+Manual's default values, including the list of reserved words.