asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.91k stars 298 forks source link

Code block numbered lines offset #413

Open Codekloeppler opened 5 years ago

Codekloeppler commented 5 years ago

Since release 1.4.6 line numbering in code blocks is supported by adding prettify.js (see #226)

Prettify supports an offset where to start the numbers, but there seems to be no chance to set the starting line number with AsciidocFX. Is it possible to support this?

I allready tried to find where in the AsciidocFX this could be set, but had no luck to identify the right place. For me it seems, it doesn't matter what string I add after the code language. Any given string will activate the line numbering - Even "foobar"!?

So there might not even be any kind of parsing for this attribute and no chance to give other information, like a linenumber.

Best Regards