An EJS syntax definition specifically for sublime text.
This syntax definition uses for opening and closing tags, respectively. Here's an example:
<div id='user-<?- userId ?>'>
<?
if (firstName && lastName)
{
?>
Hello <?= firstName + lastName ?>
<?
}
?>
</div>
<?
and ?>
where chosen because of the convenience to type on a qwerty keyboard.
If you would like to change the open and closing tags in the syntax file to <%
and %>
,
then change line 579 <\?=?-?
to <%=?-?
and 589 \?>
to: %>
in the EJS.tmLanguage file.
Feedback on this project is welcome. Let me know if you have problems with the syntax definition by creating a new GitHub issue.
Tips or donations are also very appreciated.