javascript - How do you alter editing line of textarea? -


is possible alter line user on in textarea, separate other line in textarea? image demonstration:

click here image...

enter image description here

if possible, mind showing me on http://jsfiddle.net/ ?

thanks in advance.

expanding on 1 of previous answers, , borrowing code this answer:

live demo (v0.2)

known bugs/limitations:

  • only tested in firefox 3.6.x
  • requires field_selection jquery plugin (plain javascript code caret position pain)
  • matches lines begin same current line. (likely fixable)
  • if cursor on blank line, not fade anything out. (likely fixable)
  • if cursor @ end of line, fade everything out. (likely fixable)
  • only triggers on keyboard actions (not mouse) (didn't code part yet, may not possible)
  • does not play nicely mouse. (due z-index , focus)
  • doesn't work if there's 1 character on line (silly mistake on part)

jquery/javascript isn't strong area, if can provide fixes working better, i'd appreciate it. :)


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -