Skip to content

An EJS syntax definition specifically for sublime text

Notifications You must be signed in to change notification settings

videoMonkey/EJS.tmLanguage

 
 

Repository files navigation

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

About

An EJS syntax definition specifically for sublime text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published