Skip to content

MatheusAvellar/textarea-line-numbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A simple script to add dynamic line numbers to a textarea

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published