code-syntax-block icon indicating copy to clipboard operation
code-syntax-block copied to clipboard

Offset line numbers

Open dag-erling opened this issue 4 years ago • 3 comments

When quoting code from an outside source, it would be useful to be able to specify a starting line number other than 1 so that the line numbers displayed in the block match the line numbers in the original (larger) source file.

dag-erling avatar Aug 21 '20 14:08 dag-erling

This should of been fixed in this commit ( https://github.com/mkaz/code-syntax-block/commit/f909f4ab318016b21fa8cc441f890afa435e657f ) and released in v3.0.0

If it is still an issue, please reopen and add an additional comment/screenshot. Thanks!

mkaz avatar Jun 11 '22 15:06 mkaz

I don't think that's the right commit...

dag-erling avatar Jun 11 '22 16:06 dag-erling

Ah.. wrong issue. I was closing some other ones with misaligned line numbers and code. I assumed when I saw "offset line numbers" that was the same bug.

My mistake. Re-oponed.

mkaz avatar Jun 12 '22 03:06 mkaz