¡@

Home 

javascript Programming Glossary: total_lines

Find out the 'line' (row) number of the cursor in a textarea

http://stackoverflow.com/questions/9185630/find-out-the-line-row-number-of-the-cursor-in-a-textarea

head title DEVBug title script type text javascript var total_lines 1 total lines var current_line 1 current line var old_line_count.. we have used in total var lines source_code.split n var total_lines lines.length do stuff on key presses if keypress_code '13' Enter.. 1 else if keypress_code '8' Backspace if old_line_count total_lines current_line 1 else if keypress_code '38' Up if total_lines..