                        colored.push(["string", ""])
                        last = colored[colored.length-1]
                     last[1] += c
-                    if c == mode
+                    if c == spec.ESCAPECHAR
+                       c = next()
+                       last[1] += c
+                    else if c == mode
                         mode = "plain"
 
             old_c = c


$ ->
    window.editor = new Editor()


                    oldline = @lines[i]
                    oldline[1] = start
                    oldline[2] = end
                    if oldline[3] != line or oldline[4][0] != prev_mode
                        [colored, mode, html] = @tokenizer.tokenize(line, prev_mode)
                        oldline[3] = line
                        oldline[4] = mode
