MTAA-RR » news » twhid » geek » bbedit syntax coloring:
Sep 05, 2008
BBEdit syntax coloring
posted at 19:02 GMT by T.Whid in /news/twhid/geek
I really want to go back to using BBEdit. Overall, it’s better than TextMate (especially the search). But it’s got this syntax coloring problem when editing JS in the head of an HTML page that DRIVES. ME. NUTS. Is pictured below:
BBEdit 9 is a better than the previous version, but it gets tripped up on parans in the string if you put a forward slash in it as well (if you take the parans out it works correctly). As you can see, if you’re putting HTML tags in the string (which is probably a pretty common thing to do) it breaks the syntax coloring for the rest of the JS in the doc. This happens if the doc is set to ‘html.’ If you set it to ‘JavaScript’ then the JS is OK but the HTML doesn’t get proper syntax coloring.
Does anyone know how to fix this? It’s driving me nuts and back to TextMate. permanent link to this post
MTAA-RR » news » twhid » geek » bbedit syntax coloring