I am working on this: http://jsfiddle.net/ms2fV/
As you type in the first div, the second div writes the same thing but with colors.
If you do just one line, it works. But if you add a newline, it starts getting weird, because some div are added...
How can I make it work with multiple lines?
Thanks!
Edit: it works correctly on firefox, but not on chrome nor safari on my mac...