Summary: | app-text/asciidoc-8.6.9-r2 source highlighting doesn't work | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jaak Ristioja <jaak> |
Component: | Current packages | Assignee: | Marc Joliet <marcec> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | jstein, proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jaak Ristioja
2017-11-20 11:00:41 UTC
The issue is more complex. The highlighter installed by Gentoo is pygments so you should have `source-highlighter=pygments` in ~/.asciidoc/asciidoc.conf BUT it doesn't work (it is read, but the directive is ignored). Using `asciidoc -a source-highlighter=pygments` works though. (In reply to Hadrien Lacour from comment #1) > The issue is more complex. The highlighter installed by Gentoo is pygments > so you should have `source-highlighter=pygments` in > ~/.asciidoc/asciidoc.conf BUT it doesn't work (it is read, but the directive > is ignored). Using `asciidoc -a source-highlighter=pygments` works though. Your configuration file is wrong. In the asciidoc.conf you also need the appropriate section heading (it's INI-style), like so: [attributes] source-highlighter=pygments Alternatively, you can add the attribute to your asciidoc source file, but then you need to use the correct title level, so the following also works: = Sample :source-highlighter: pygments [source,sh] ---- echo 'Hello, World!' ---- At this point I would like to mention that asciidoc upstream appears to now recommend using asciidoctor instead, so maybe give that a try. They haven't bothered to update the homepage (yet, I hope), refer to https://github.com/asciidoc/asciidoc/releases/tag/8.6.10 instead. (I'd also like to point out that I had actually forgotten all this, I had to look it up in the documentation myself. Hint, hint ;-) .) |