Adding code languages support (MJML)/Or an MJML interpretor?

16 views
Skip to first unread message

David Viard

unread,
Mar 14, 2023, 2:53:14 PM3/14/23
to BBEdit Talk
Hi Group,

I am working with the MJML email templating language/API. [https://mjml.io]
It is a subset/variant of HTML & CSS, which aims to "guarantee" the code is valid for' all' email clients (with tweets of course).

I have build a series of regex/AppleScript/Shell  with BBEDIT which interprets a "rough" output in MJML from a Design Sytem, as a POC.

I am trying to make BBEdit recognize MJML.mjml files as HTML (~ subset) and myCSS.css.mjml as CSS file (+additions). (Readability of code, indentation, coloring, etc…).

Can I do this in the Prefs > Languages > Pane?
  • Where can I add (or contribute) specific markup —meaning different than HTML/CSS which should be recognized or ignored (if error)—. 
  • Is there a file to edit?
If not, is there a way to add a module (like VSCode has, which also generates a Preview via their API)?
Using the mjml API?

Thanks a lot for your input





Reply all
Reply to author
Forward
0 new messages