attilabuti / vscode-mjml

This repo is archived. MJML preview, lint, compile for Visual Studio Code.

Home Page:https://marketplace.visualstudio.com/items?itemName=attilabuti.vscode-mjml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Html highlighting and tag autocompletion

klis87 opened this issue · comments

Is it possible to have html support in mjml file? Like html tags highlighting or creating <div></div> by having just div written and pressing tab like in html files? I tried

"files.associations": {
  "*.mjml": "html"
}

but then this plugin doesn't work anymore.

I solved it myself:

 "emmet.includeLanguages": {
    "mjml": "html"
 }

plus installing of mjml-syntax plugin

I was having trouble getting this working, but found that it's also import to have this setting set accordingly:

{
  // Shows expanded Emmet abbreviations as suggestions.
  // The option "inMarkupAndStylesheetFilesOnly" applies to html, haml, jade, slim, xml, xsl, css, scss, sass, less and stylus.
  // The option "always" applies to all parts of the file regardless of markup/css.
  "emmet.showExpandedAbbreviation": "always",
}