RFC! A two-column table design to separate numbers from code. :)
01
02
03
04
05
06
07
08
09
10
| $obj = MyDyn->new(id => 'MyObj');
print $obj->id, "\n";
$obj->action();
package MyDyn;
use base 'DynObject';
sub action
{
print "hi\n";
}
|
update
inspired by
Re^5: Change default style sheet: add line numbers
Some remarks:
- line-numbers are not always in sync, line-height of { or $ may interfere (depending on CSS, YMMV)
- numbers shouldn't be real code section (no download-link) but mimic the css settings
- JS toggle could interactively hide numbers
- wrapped-over lines must not be counted
- this could also be realized as nodelet hack
- line numbers could be anchors for html-links generated from error message
- line-numbers could be only shown on_mouse_over, else hidden