ejs-grammar icon indicating copy to clipboard operation
ejs-grammar copied to clipboard

Custom Delimeter Support

Open pavittarx opened this issue 7 years ago • 3 comments

EJS supports custom delimeters, like we can use <# ejs-code #> instead of <% ejs-code %> or whatever you like. I am using this Javascript EJS extension on VS Code, but it supports only, <% tags , all the formatting goes away as soon as i use custom tag delimeter like <. ejs-code-here .> I suppose this feature should be added.

pavittarx avatar Feb 19 '18 04:02 pavittarx

Currently, Only <% and <? are supported.

I can move this into a further enhancement.

Betanu701 avatar Feb 27 '18 03:02 Betanu701

so are there any advancements on this?

pavittarx avatar May 13 '18 02:05 pavittarx

We are working on the language server. Once we get this working, we should be able to add a configuration that would take an array of values that you want to be the custom delimiters.

As of right now, still only the 2 are supported. If you want to get a little dirty, you can open the ejs language files, specifically ejs.json and language-configuration.json and change % to "#" that would make it so you can use at least <# #>.

This is not the ideal solution which I will not publish. If you do that, to prevent an overwritten you may want to rename the aliases in the package.json.

Betanu701 avatar May 15 '18 19:05 Betanu701