Git Product home page Git Product logo

ejs.tmlanguage's Introduction

Metrics

ejs.tmlanguage's People

Contributors

ksloan avatar samholmes avatar sandwich99 avatar videomonkey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ejs.tmlanguage's Issues

Windows Key Binding not Working

I am able to replicate the problem, but I don't know where to start trouble shooting. The = tab trigger works just fine. And it's working on OSX.

Shouldn't it be <% %> ?

I should first thank you for taking the initiative to create an EJS package for sublime, thanks, but I have to ask why did you choose when the ejs page clearly states that <% %> is the default tag form. I would prefer it to be like that.

Errors in latest Sublime Update

Since I updated Sublime with the auto updater, this package has started to throw errors in valid markup.

screen shot 2016-02-11 at 01 39 03

Sublime Version: Stable Channel, Build 3103

<%== is not recognized

Minor issue, the <%== command (used for embedded views for example) is not colored correctly, the second equal sign becomes a different color.

detection of <% vs <? is off

when opening files with <%%> notation It detects the syntax highlighting as EJS <??>...

i can switch it over manually but that gets tedious after doing that for every template time and time again.

either I'm looking for an option to force <%%> syntax highlighting, or a fix to detect the syntax type.

Comprehensive key bindings

Currently there is a tab trigger on the = character that produces a <?= ?> set. Having = as the tab trigger can be problematic when coding.

There needs to be a key binding that produces:

<?| ?>

Where | is the cursor position. This way, one can easily choose between - and = or no symbol at all (by enter a space). Also, pressing enter within this should modify the snippet to:

<?
|
?>

Remove the space before ?> and adding two newline characters in between <? and ?>.

PS: <? and ?> can also mean <%and %>,or any other tags once this is becomes an option.

[Issue] EJS does not work properly after "default syntax only" check in

Hello samholmes,

I have just noticed that EJS.tmLanguage plugin shows error when I open an .ejs file in my Sublime 3 a while ago. Then, I uninstalled the EJS.tmLanguage through Package control and re-installed it again, but the error still occurs. It seems that this error is caused by your latest check in "default syntax only". Here are the steps to replicate the issue:

  1. Reinstall/Upgrade EJS.tmLanguage by using Package Control in Sublime 3.
  2. Close & Reopen Sublime 3 text editor app.
  3. Confirm that an Error occurs "Error parsing snippet xml: expected=in file Packages/EJS/insert_ejs_tags.sublime-snippet on line:5".
  4. Click [Ok] button on the error dialog.
  5. Open an .ejs file.
  6. Confiirm that the syntax highlighting on the .ejs file is gone now.

Below is the detail of my system environment:

  • Ubuntu 14.04
  • Sublime 3 with these installed Packages (in Package Control): Angular JS, Better Completion, Better Coffeescript.

Cheers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.