It is time to upgrade your browser! This site looks and acts much better in a newer browser. Go TO THIS PAGE to find LINKS to all the major NEW BROWSERS. The links are at the bottom of the page under "What can I do?"

Or, you may keep reading this ugly page.

the MTAA-RR

[splash image]

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

Meta: haven’t done a good old geek post on the MTAA-RR in a while…

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_syntax_bah.gif

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


1997 - 2006 M.River & T.Whid Art Associates. Some Rights Reserved. MTEWW.com is licensed under a Creative Commons License with the exception of Website Unseen titles which are covered by agreements with individual collectors and otherwise where noted.