Hi Everyone,
I noticed that javascript().support
and css().support
are included in the html
language extension.
from lang-html/index.js
:
function html(config = {}) {
let lang = htmlLanguage;
if (config.matchClosingTags === false)
lang = lang.configure({ dialect: “noMatch” });
return new LanguageSupport(lang, [
htmlLanguage.data.of({ autocomplete: htmlCompletionSource }),
config.autoCloseTags !== false ? autoCloseTags : [],
javascript().support,
css().support
]);
}
But, they don’t seem to be applied when I set the html extension:
html({autoCloseTags: true, matchClosingTags: false})
html support works (syntax highlighting and code completion, etc.) but javascript and css render as plain text. Is there anything else I need to do to switch these on?
And can I combine support for html, javascript and css in the same document?