Login  Register

Disable line nubmers for specific listing

Posted by Fernando-Basso on Sep 20, 2019; 1:45pm
URL: https://discuss.asciidoctor.org/Disable-line-nubmers-for-specific-listing-tp7157.html

I have enabled line numbers by default on the document:

:source-highlighter: pygments
:source-linenums-option:
:pygments-css: class

Is it possible to disable line numbers for specific code listings? Something
like this, perhaps?

[source,shell-session,nolinenums]

or

[source,shell-session,linenums!]

Tried both, by the way. Didn't work. Also, couldn't find docs on disabling
line numbers for specific listings. Perhaps it is not possible?