Using highlight with asciidoc

Starting with release 8.6.8, asciidoc supports highlight as source code filtering tool.

To enable highlight, add this in your ~/.asciidoc/asciidoc.conf:

[attributes]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
source-highlighter=highlight

Then paste your code snippets into your input like this:

[source,c]
----
using namespace std;
using namespace boost::xpressive;

namespace highlight
{
}
----

Run asciidoc:

asciidoc -b html5 -v  infile.txt

See http://asciidoc.org/source-highlight-filter.html for more information.

en/using_highlight_with_asciidoc.txt · Last modified: 2016/10/28 22:00 by saalen
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0