Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The line numbering behavior is curious. They seems to disappear when I click, but not if I click-and-drag to select.

Syntax highlighting with line numbers is tricky business. It is very difficult to get both 1) Perfectly aligned numbers and 2) Support for copy and paste without numbers.

There must be a decent Javascript solution...



Yeah, line numbering is tricky. That's why we hide the numbers when you click -- it's a mode that's built into CodeRay.

Note you can still just paste github gists on their own line and we expand those too -- so that's still another option.

Also you can probably just hide line numbers completely using CSS if you customize your theme.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: