Version 1 (modified by Chuck, 15 years ago) |
---|
Syntax highlighting is the display of program source code using different colors and fonts according to the category of terms.
If you are looking for syntax highlighting from an interactive program, see EditorSupport and IDESupport.
If you are looking for highlighting from a command line tool, you have two choices:
You can use "cobra -highlight ..." to emit an HTML version of source code. Because this approach leverages the Cobra compiler, the results are typically the most accurate and savvy.
You can also use the PygmentsHighlighter to do the same thing. This approach is best when you already have a program such as Trac that is using Pygments by default.