Custom Line Number Start
-
Is there a way to have a custom line number start?
For example:
[pastacode lang=”php” path_id=”1edf44b7caf1fa8aaed1″ file=”functions.php” highlight=”3″ lines=”124-130″ provider=”gist”/]I had to use highlight=”3″ because the output of lines 124-130 gives lines 1-7. If I use highlight=”126″ it loads a long list of empty lines and highlights line 126.
If I use I remove the lines data, then the output will display the whole file, which is pretty long.
I’m thinking, maybe there is a data attribute I am not aware of that will make the line numbers start at a particular number?
Or perhaps, as a suggestion, if there is a “lines=”” attribute, the output should automatically adjust the line number in the output to the same?
Live sample: https://techmagus.ninja/wordpress-ridizain-theme-featured-post-bug-fix/
Thank you.
The topic ‘Custom Line Number Start’ is closed to new replies.