Re: Listing blocks default to source

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

Re: Listing blocks default to source

mojavelinux
Administrator
This would be possible to do with a TreeProcessor extension. You can visit all the listing nodes and switch the style attribute.

There's an open discussion about making this the default behavior in certain circumstances. See https://github.com/asciidoctor/asciidoctor/issues/1117

-Dan



On Fri, Jan 26, 2018 at 8:22 AM, asciidocuser48 [via Asciidoctor :: Discussion] <[hidden email]> wrote:
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
----------------------------


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Listing-blocks-default-to-source-tp6136.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux