If I process the following asciidoc
file with asciidoctor
,
Here is our first program:
[source,cpp]
----
// Uninteresting/Potboiler line
// Uninteresting/Potboiler line
// Uninteresting/Potboiler line
// Uninteresting/Potboiler line
// Interesting line
// Interesting line
// Uninteresting/Potboiler line
// Uninteresting/Potboiler line
// Uninteresting/Potboiler line
// Uninteresting/Potboiler line
----
the result looks as follows:
But often (as hinted in the code above) the crux of what's interesting is brief.
In such cases I can keep the entire HTML succinct by quoting just the interesting lines, and adding a link that points to the full source file. This takes the reader out of context, and forces them to go forward/back in the HTML navigation.
I am looking instead for a way to keep the full code accessible through scrolling in the html page, while showing only the interesting bits. Is this possible with asciidoctor?