Sublime Text 3 EJS Formatting Pack

I am looking for a package for formatting ejs files. I already found "html-css-js prettify" and set "ejs" as allowed_files, but that didn't work. When I use the default setting in other variants, all expression languages ​​are broken. When I set the "%" to the "unformatted" array, all code near the expression language is ignored.

Do you have another idea or plugin to use with sublimeText 3?

+6
source share
1 answer

I had a problem with https://github.com/samholmes/EJS.tmLanguage (although I use Jade over EJS, so I don't use it as much as possible). You can install it using the Sublime Text Package Control, a package called EJS.

You may need to exchange .ejs files with "Plain Text" (or any type of default) to "EJS <% and%>".

+7
source

Source: https://habr.com/ru/post/980123/


All Articles