Hacker News new | ask | show | jobs
by ben165 1034 days ago
Mhmm... if you don't want to make it selectable you need wonderful JS or tables to seperate it? Makes thing more complicated.

Just remove the line numbers, every editor can mark in block mode today. Some snippets won't work without further code anyways.

1 comments

Something like...

.line-number { user-select: none; -moz-user-select: none; -webkit-user-select: none; }

...should be sufficient to prevent that bit from being selected without JS.