Codeblock line numbers


What is the proper way to include line numbers in code blocks?


Usually a post-markdown process handles syntax highlighting. A few examples:

Syntax highlighters often have an option to include line numbers.


Can the following be parsed readily to produce html ready for line numbers in post-processing js library like highlight.js?:

    # line 1
    # line 2 (to be highlighted)


Duplicate of: Code Blocks Extension for filenames and line numbers


Thanks for the heads up @chrisalley :thumbsup:

closed #6