Add snippets for Ejs and some colors for better visualization
Please rate this and provide feedback It helps me know what I need to improve.
If there is anything that I missed or features you would like this to include. Let me know
If snippets do not show up, add the following to your settings file
"emmet.includeLanguages": {
"ejs": "html",
},
Snippets are found below.
Snippet | Output |
---|---|
ejs |
<% %> - No output tag |
ejsout |
<%= %> - Outputs HTML value |
ejsesc |
<%- %> - Outputs unescaped |
ejscom |
<%# %> - Comment tag |
ejslit |
<%% %> - Outputs Literal <% |
ejsinc |
include statement |
ejsfor |
for Javascript Loop |
ejseach |
forEach Javascript Loop |
ejsforof |
forOf Javascript Loop |
ejsforin |
forIn Javascript Loop |
ejsif |
if Statement with condition |
ejsifelse |
if else Statement with condition |
ejster |
tertiary operator Statement with condition |
If you need documention on how to use EJS: