You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you please add EJS support or extend the existing HTML to include .EJS files? I know it takes time to do the custom syntax highlighting, but in the meantime can you at least have .EJS files open with the .HTML template?
Below is my current fix, for anyone interested. It has to be re-applied after each version update, which is why i am asking if you could just add .EJS to the list of extensions/aliases for HTML.
VSCODE_DIR:
win:
c:\Program Files(x86)\Microsoft VS Code
mac:
Applications > Visual Studio Code.app > right click > show package content
open VSCODE_DIR\resources\app\extensions\html\package.json and add ".ejs" to extensions array and add "ejs" to aliases array.
here is a copy of how my package.json file looks after the change (on version 0.10.8 - older versions use a different file scheme):
In the March release we have user definable file association (see #3612). So you will be able to associate EJS files to the html language mode.
Adding ejs to the html languages contribution point by default is IMO not a good idea as, if I understand correctly, EJS files are not always valid HTML files.
Feature Request: .EJS support
Can you please add EJS support or extend the existing HTML to include .EJS files? I know it takes time to do the custom syntax highlighting, but in the meantime can you at least have .EJS files open with the .HTML template?
Below is my current fix, for anyone interested. It has to be re-applied after each version update, which is why i am asking if you could just add .EJS to the list of extensions/aliases for HTML.
VSCODE_DIR:
win:
c:\Program Files(x86)\Microsoft VS Code
mac:
Applications > Visual Studio Code.app > right click > show package content
open VSCODE_DIR\resources\app\extensions\html\package.json and add ".ejs" to extensions array and add "ejs" to aliases array.
here is a copy of how my package.json file looks after the change (on version 0.10.8 - older versions use a different file scheme):
Here are the docs for .EJS which shows default syntax incase you ever add syntax support for EJS:
http://www.embeddedjs.com/
The text was updated successfully, but these errors were encountered: