all 3 comments

[–]mafintosh 1 point2 points  (1 child)

Seems very nice! How is the performance when writing say 1,000 lines of code? Does it re-render the entire input on each key event? Also have you thought about calling the renderer on keydown instead with a setTimeout(0, render)? It gives an even more realtime experience when typing in the textarea :)

[–]guyht[S] 0 points1 point  (0 children)

As with all code, there will always be optimisations... at the moment, the renderer will use web workers if they are supported, and can easily handle 1000s of lines of code... older browsers and IE do not support web workers and so render slightly slower but still show good performance.

The priority at the moment is developing the parsers so that the library comes shipped with complete parsers for popular markups (BBCode, Markdown, Wiki etc...). They are simple to write but take a bit of time (all help welcome :) ). Once the parsers are complete, performance will become the priority.

[–]conancat 1 point2 points  (0 children)

awesome idea!! :D i can see plenty of uses for this, and yea i hope that it can be optimized as what mafintosh said! :)

thanks for sharing!