EJS 2
EJS syntax definition for Sublime Text 3 & 4
Details
Installs
- Total 41K
- Win 19K
- Mac 15K
- Linux 8K
Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 3 | 3 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 2 | 2 | 1 | 1 | 1 | 1 | 2 | 1 | 4 | 1 | 0 | 4 | 1 | 2 | 1 | 1 | 3 | 0 | 3 | 2 | 1 | 3 | 0 | 1 | 0 | 4 | 3 | 4 |
Mac | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 2 | 2 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 |
Linux | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 2 | 3 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 2 | 0 | 1 | 0 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 1 | 0 | 3 | 1 | 0 | 0 | 1 | 2 | 2 |
Readme
- Source
- raw.githubusercontent.com
EJS 2
EJS syntax definition for Sublime Text 3 & 4. Includes EJS tag autocompletion and snippets.
Installation
Use Package Control to install EJS 2.
Setting the default syntax
By default, files with the extension .ejs
are opened with the EJS (<% %>)
syntax.
To open files with a different extension as EJS, or to use delimiters other than <% %>
, follow these steps to set the default EJS syntax for a file extension:
- Open an EJS file
- Select
View
from the menu bar - Then select:
Syntax
→Open all with current extension as...
→EJS 2
→EJS (<delimiter>)
- Repeat for each extension you want to open as EJS
This package includes syntax definitions for the following additional delimiters: <? ?>
, <$ $>
, <@ @>
.
Color Scheme
EJS 2
comes with the Dracula EJS
color scheme, which is a modified/updated version of zertosh’s old dracula theme. You can select it from: Preferences
→ Color Scheme
.
Oceanic Next
is also a good color scheme for EJS that works right out of the box.
If you'd prefer to use a different color scheme, you may need to add lines like these to make the highlighting more compatible with EJS.
Preview (with Dracula EJS)
Snippets
In the HTML scope:
if
+TAB
- Inserts EJSif
statementfor
+TAB
- Inserts EJSfor
loop
Contributing
Most problems are best addressed by opening an issue.