asciidoctor / atom-asciidoc-preview

⚛ AsciiDoc preview for the Atom editor.
https://atom.io/packages/asciidoc-preview
MIT License
142 stars 42 forks source link

Add line numbers to code samples in preview #275

Open ingosimonis opened 6 years ago

ingosimonis commented 6 years ago

Description

Hi, I am often using code samples, using the notation shown below with the linenums-flat set.

Using coderay, I get line numbers for these parts in the HTML when compiling the asciidoc, but I cannot see any line numbers for the code in the Atom-preview window. Is there anything I can do?

Thanks a lot, Ingo

Syntax example

[source,java,linenums]
----
class MyClass {
}
----