Hi there,
I'd like to be able to create a type of folding in xhtml textarea
s using Javascript/jQuery. For example, given the following text:
ABC [123] DEF
I'd like to have [123]
reduce to []
when the cursor is not over it - i.e. for a cursor |
:
ABC [] DEF|
AB|C [] DEF
ABC [|123] DEF
ABC [12|3] DEF
I want the content within the braces to be preserved, of course, when the item is folded in (ie when cursor exits the braces), and restored when it's folded out (cursor enters the braces).
I'd be very much obliged for thoughts on this.
Thank you.
Brian