Listing blocks default to source - Is this possible? Rather than adding [source]

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Listing blocks default to source - Is this possible? Rather than adding [source]

asciidocuser48
This post was updated on .
Can I make a listing block default to source, so [source] is not required  before each listing block. In asciidoc this was accomplished by using, ListingBlockStyle-Source: or :blockdef-listing.style: source

:source-language: bash

.All listing blocks highlighted.
----------------------------
# source
----------------------------
Reply | Threaded
Open this post in threaded view
|

Re: Listing blocks default to source - Is this possible? Rather than adding [source].

asciidocuser48
With asciidoc, all my listing blocks are source blocks.  Therefore there is no [source] for each listing block, but rather one attribute set, :blockdef-listing.style: source.  

Is this possible in Asciidoctor or do I have to modify every source block to include a [source]?