codemirror string coloring multiple lines -
i'm using codemirror javascript code coloring, , when put string in quotes "like this" colored fine.
but when put string line break "like
this" color messed on second line.
is there way make sure color starts first quote , ends second quote, if there line break?
javascript doesn't allow multi-line strings. can use backslash before newline, or use template literals (backtick-quoted strings), if don't, aren't writing valid javascript, , reason why codemirror mode doesn't highlight code expected.
Comments
Post a Comment