Here's the trick, and it's an "issue" I've dealt with for years, as the system 
Statamic (Statamic.com) uses essentially the same syntax: the file extension is 
HTML or MD, and the text in the file is HTML or MD, but that MD (etc) lives as 
the "value" in a YAML key: value pair. As such, BBEdit's syntax coloring gets 
all confused. In fact sometimes when I'm dealing with a string of HTML as the 
value, I can't even envoke the "Edit Markup" command, because BB doesn't notice 
my cursor is in the middle of a string of HTML (I imagine because the file type 
is .md, even though HTML is fully parsable within a line of MD.

I believe there's a "Ruby in HTML" syntax? (Forgive me, I'm on my iPad right 
now, not near my Mac) It would be amazing if there was a way to set two 
syntaxes, one for the key: value language, and one for the value strings. So 
you could say [pull down 1:] YAML (with [optional pull down 2:] Mardown. I 
always thought I was fringe enough for this not to be worth writing to BB with 
this as a feature request—but honestly, Jekyll is wildly popular right now, I 
may be less and less fridge by the day. Secondly, it would also be awesome to 
allow the "Edit Markup" command in any syntax, since HTML is stuck inside many 
scripting languages. This request is probably far less fringe.

~brian

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].

Reply via email to