Source Code Highlighting


Table of Contents

27.3. Code Filter 
AsciiDoc Source Code Highlight Filter 
Install 
GNU Source-highlight 
supported languages 
available language specifications 
Examples 
Shipped Examples 
Extra Examples 

27.3. Code Filter 

AsciiDoc comes with a simple minded code-filter for highlighting source code keywords and comments.

A full featured source code highlighter filter (source-highlight-filter.conf) using GNU source-highlight can be found in the AsciiDoc distribution ./examples/source-highlight-filter directory. GNU source-highlight generates nicely formatted source code for most common programming languages.