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