Re: Listing blocks default to source

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

Re: Listing blocks default to source

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


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 source

:source-language: bash

.All listing blocks highlighted.
# source

If you reply to this email, your message will be added to the discussion below:
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.

Dan Allen | @mojavelinux |