Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.2 KB

README.md

File metadata and controls

29 lines (21 loc) · 1.2 KB

EJS.tmLanguage

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

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.

PayPal Donation
1Ep5xmuRhFQREJ9BjPnySmtK3fxkWankDc