Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.04 KB

README.md

File metadata and controls

25 lines (18 loc) · 1.04 KB

Textarea with Line Numbers

I'm definitely not very good at naming projects


This is a simple script to add dynamic line numbers to a textarea. By adding tln.js and tln.css (or their corresponding minified versions) to an HTML file and then calling the TLN.append_line_numbers( id ) function, the <textarea> with the specified ID will be numberified™.

When and if you get sick of those pesky numbers on the side of your textarea, you can call TLN.remove_line_numbers( id ) and they'll poof out of existence, as if they were never there.

You can check the demo, or this sample screenshot of what it looks like (with some additional CSS styling):

Screenshot of sample code in which each line is numbered accordingly

Note: Example code and file header ("file.bc") seen in screenshot are sold separately and may or may not be available at your local convenience store.