| 1 | Syntax highlighting is the display of program source code using different colors and fonts according to the category of terms. |
| 2 | |
| 3 | If you are looking for syntax highlighting from an interactive program, see EditorSupport and [wiki:IDESupport]. |
| 4 | |
| 5 | If you are looking for highlighting from a command line tool, you have two choices: |
| 6 | |
| 7 | 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. |
| 8 | |
| 9 | 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. |