darron / language-ejs

EJS support for Atom.
Apache License 2.0
14 stars 7 forks source link

Have to close and reopen tab for syntax highlighting to update #22

Open mcandre opened 5 years ago

mcandre commented 5 years ago

Syntax highlighting kind of works, but it stops when I change file content. Then I have to close and reopen the tab each time.

mpoell commented 4 years ago

Same issue brought me here as well. Have you found any solution?

HarrisKhawar commented 4 years ago

try changing the language to EJS manually. another solution is to add a snippet for EJS tags:

Atom > Snippets

add the following:

'.text.html.ejs':
  'EJS Tag':
    'prefix': '%'
    'body': '<%$1%>'

Enter % and press TAB to auto-complete the closing tag.

JonRider commented 4 years ago

This seems to be because the plugin only recognizes the .html.ejs extension automatically. In a tutorial we had been using .ejs only. Is it possible to make the plugin recognize only the .ejs extension as ejs?