CTAN has a new package: colordoc
By loading colordoc on top of a documentation file (that uses Frank Mittelbach's doc package), the code listings will highlight pairs of curly braces with matching colors. Other delimiters like \if ... \fi, are highlighted, as well as the names of new commands. It makes code a little more readable, and it helps when you're writing it. Three options, including a non-color option designed for printing (which numbers the delimiters and underlines the new commands).
This package is located at http://tug.ctan.org/tex-archive/macros/latex/contrib/colordoc . More information is at http://tug.ctan.org/pkg/colordoc (if the package is new it may take a day for that information to appear). We are supported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/usergroups.html .
colordoc – Coloured syntax highlights in documentation
The package is used in documentation files (that use the doc package); with it the code listings will highlight (for example) pairs of curly braces with matching colors.
Other delimiters like \if ... \fi, are highlighted, as are the names of new commands.
All this makes code a little more readable, and helps during process of writing.
Three options are provided, including a non-color option designed for printing (which numbers delimiters and underlines new commands).
|Copyright||2010 Federico Garcia|
|Maintainer||Federico Garcia-De Castro|