in reply to Re^2: Change default style sheet: add line numbers (code)
in thread Change default style sheet: add line numbers
Hm. .. I ignored that HTML tags could be injected too.
Enclosing line numbers in a span which is hidden by a onselect JS handler could be a solution for unintended selection.
Unfortunately no time for a prove of concept now.
FWIW, the source view in metacpan is pretty neat, no selection of line numbers and syntax highlighting.
Couldn't check yet how highlighting is implemented. ¹
¹) looks Perltidy'ish
|
|---|