ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

EJS 2

by nwoltman ST3

EJS syntax definition for Sublime Text 3

Details

Installs

  • Total 27K
  • Win 12K
  • OS X 11K
  • Linux 5K
Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 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
Windows 0 2 9 8 22 7 11 4 3 14 13 9 12 10 8 9 5 10 12 8 12 9 7 7 13 13 12 12 4 6 12 16 7 10 5 7 0 0 15 11 13 10 10 13 14 17
OS X 0 6 6 7 10 11 8 6 7 8 5 5 5 10 3 5 7 10 9 5 4 4 6 9 10 11 10 3 4 8 10 11 5 11 21 4 0 0 5 10 11 8 6 4 9 14
Linux 0 5 5 3 3 8 2 5 2 9 4 8 8 5 1 7 9 1 2 4 6 1 3 1 5 5 2 3 2 4 4 1 4 3 7 4 0 0 4 6 7 2 6 2 5 3

Readme

Source
raw.​githubusercontent.​com

EJS 2

EJS syntax definition for Sublime Text 3. Also includes EJS tag autocompletion and some 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:

  1. Open an EJS file
  2. Select View from the menu bar
  3. Then select: SyntaxOpen all with current extension as...EJS 2EJS (<delimiter>)
  4. 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: PreferencesColor 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 EJS if statement
  • for+TAB - Inserts EJS for loop

Contributing

Most problems are best addressed by opening an issue.