EJS 2
EJS syntax definition for Sublime Text 3
Details
Installs
- Total 41K
- Win 19K
- Mac 15K
- Linux 7K
Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 2 | 0 | 3 | 1 | 1 | 2 | 3 | 1 | 2 | 2 | 2 | 2 | 1 | 1 | 0 | 1 | 0 | 4 | 1 | 1 | 3 | 1 | 6 | 1 | 2 | 1 | 1 | 2 | 1 | 1 | 2 | 3 | 1 | 0 | 1 | 1 | 0 | 1 | 5 | 1 | 0 | 0 | 2 | 1 | 1 |
Mac | 0 | 4 | 0 | 1 | 1 | 3 | 1 | 2 | 0 | 1 | 1 | 1 | 0 | 1 | 3 | 3 | 3 | 3 | 1 | 1 | 0 | 0 | 1 | 2 | 1 | 1 | 1 | 0 | 2 | 2 | 0 | 2 | 2 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 | 0 | 0 | 1 |
Linux | 0 | 0 | 1 | 6 | 2 | 1 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 2 | 0 | 2 | 1 | 1 | 1 | 1 | 2 | 1 | 0 | 2 | 2 | 2 | 1 | 2 | 0 | 0 | 1 | 1 | 0 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 |
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.