Login  Register

Re: Disable line nubmers for specific listing

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

abelsromero wrote
You can unset a value (https://asciidoctor.org/docs/user-manual/#using-attributes-set-assign-and-reference) using :!source-linenums-option: or :source-linenums-option!:.
But keep in mind this changes the value of the attribute from that point on. So if you want to disable it only in some parts, you have to set it again after.
Cool. Thanks!