"Web-Stack" developer with a focus on accessibility design and development patterns, data visualization and DevOps automation.
Fell in love with Node, JS, SPA's and the JAMStack. Bye LAMP.
I haven't specifically tried BPC-2 but it appears to do the same thing - the only difference I can tell is that Rainbow will highlight in red the isolated right bracket so you always know where you currently are inside any set of coloured brackets. That being said I'm giving BPC-2 a try right now!
Didn't even know of Version Lens - you're right it's way better. Updating list.
I had Prettier for a while but out of the box, it couldn't handle HTML markup inside .js/.ejs template files and was driving me crazy - Beautify gives an option to treat unknown markup as "HTML, CSS, JS" regardless of file ending from a Prompt dropdown.
What is "HTML markup in .js files"?
It does script/css in html, jsx inside js, and any language it supports as a tagged code block inside markdown by default.
If your file IS valid HTML, but also contains for example moustache tags in the text node positions, you can set a configuration override for your extension of the parser option.
Edit: I looked up what ejs is, and there is, indeed, no support. Does your plugin beautify it by parsing it as pure HTML?
"Web-Stack" developer with a focus on accessibility design and development patterns, data visualization and DevOps automation.
Fell in love with Node, JS, SPA's and the JAMStack. Bye LAMP.
That's correct when Beautify hits markup it wasn't expecting (like HTML inside a .js/.ejs file as EJS templating can handle this) it lets you pick how to handle it. Very nifty.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey Mihail,
I haven't specifically tried BPC-2 but it appears to do the same thing - the only difference I can tell is that Rainbow will highlight in red the isolated right bracket so you always know where you currently are inside any set of coloured brackets. That being said I'm giving BPC-2 a try right now!
Didn't even know of Version Lens - you're right it's way better. Updating list.
I had Prettier for a while but out of the box, it couldn't handle HTML markup inside
.js/.ejs
template files and was driving me crazy - Beautify gives an option to treat unknown markup as "HTML, CSS, JS" regardless of file ending from a Prompt dropdown.What is "HTML markup in
.js
files"?It does script/css in html, jsx inside js, and any language it supports as a tagged code block inside markdown by default.
If your file IS valid HTML, but also contains for example moustache tags in the text node positions, you can set a configuration override for your extension of the parser option.
Edit: I looked up what
ejs
is, and there is, indeed, no support. Does your plugin beautify it by parsing it as pure HTML?Hey Mihail,
That's correct when Beautify hits markup it wasn't expecting (like HTML inside a
.js/.ejs
file as EJS templating can handle this) it lets you pick how to handle it. Very nifty.