EJS 2
EJS syntax definition for Sublime Text 3
Details
Installs
- Total 37K
- Win 17K
- Mac 13K
- Linux 7K
Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 3 | 3 | 3 | 2 | 9 | 4 | 8 | 9 | 3 | 6 | 9 | 7 | 6 | 5 | 1 | 2 | 6 | 2 | 4 | 4 | 3 | 2 | 3 | 2 | 3 | 3 | 4 | 7 | 4 | 1 | 3 | 4 | 5 | 3 | 6 | 1 | 5 | 5 | 2 | 5 | 5 | 7 | 4 | 4 | 5 |
Mac | 0 | 2 | 1 | 2 | 5 | 5 | 3 | 7 | 2 | 0 | 5 | 2 | 3 | 2 | 9 | 3 | 0 | 4 | 4 | 3 | 1 | 2 | 1 | 2 | 3 | 2 | 1 | 6 | 1 | 3 | 1 | 0 | 2 | 2 | 4 | 2 | 1 | 3 | 2 | 1 | 0 | 0 | 4 | 2 | 1 | 3 |
Linux | 1 | 4 | 2 | 3 | 2 | 6 | 3 | 2 | 0 | 1 | 1 | 1 | 5 | 0 | 6 | 0 | 0 | 3 | 3 | 1 | 5 | 1 | 0 | 0 | 1 | 0 | 3 | 1 | 3 | 1 | 1 | 0 | 3 | 3 | 1 | 0 | 2 | 1 | 3 | 0 | 1 | 1 | 4 | 4 | 0 | 2 |
Readme
- Source
- raw.githubusercontent.com
EJS 2
EJS syntax definition for Sublime Text 3. 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 version of zertosh/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.