Glad to help! The link/resource you mention explains it succinctly:
Quote:
..works on code blocks (<pre><code>) and not for inline code. You specify the lines to be highlighted through the data-line attribute on the <pre> element, in the following simple format:
- A single number refers to the line with that number
- Ranges are denoted by two numbers, separated with a hyphen (-)
- Multiple line numbers or ranges are separated by commas.
- Whitespace is allowed anywhere and will be stripped off.
Endquote.
Let me know where you are getting stuck and I will try to help, thank you!
Thank you for prompt answer. So I add Prismatic block and copy/paste code and choose language. In order to add that data attribute I need to convert everything to HTML and add it manually?
I’m not sure tbh.. which editor are you using, Block or Classic? Let me know and I will take a closer look.
Block. But there is no any option to add those data attributes
You are correct, currently to add line numbers it is necessary to edit the block as HTML and add the attribute manually. I will add a note for the next update and try to add another menu item for specifying data-line via the block options. Thanks for bringing this to my attention, let me know if I can provide any further information.
Working on this now.. should have an update within a couple of days. Thank you for your patience.
This feature is added in Prismatic version 3.7.1, available now.