You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
Code coloring broken for html file with Embedded JavaScript templates (EJS)Β #4137
A. Swap htmlmixed for htmlembedded or
B. Require EJS files to have a .ejs extension.
I think B is safe for now and we might reconsider A in the future. Eventually users will have the option to override the mode via https://trello.com/c/FaoluhZ5.
It doesn't fix the original bug as filed -- .html files will still get treated as regular HTML -- but that's just a FOL until changing the syntax mode per-file or per-extension is implemented. It's definitely fixed for the .ejs extension, I think we're good to close.
Activity
jasonsanjose commentedon Jun 7, 2013
Looks like this works in the code mirror demo http://codemirror.net/mode/htmlembedded/. However, we would either need to
A. Swap
htmlmixedforhtmlembeddedorB. Require EJS files to have a .ejs extension.
I think B is safe for now and we might reconsider A in the future. Eventually users will have the option to override the mode via https://trello.com/c/FaoluhZ5.
Reviewed, low priority to @jasonsanjose.
lkcampbell commentedon Jun 9, 2013
I submitted pull request #4166 that implements solution B.
Merge pull request #4166 from lkcampbell/fix-issue-4137
lkcampbell commentedon Jul 25, 2013
This should be fixed now. At the very least, this bug should be marked FBNC.
lkcampbell commentedon Aug 2, 2013
@dalcala or @jasonsanjose, when you get a moment, please confirm this fix and close this bug.
peterflynn commentedon Aug 3, 2013
It doesn't fix the original bug as filed -- .html files will still get treated as regular HTML -- but that's just a FOL until changing the syntax mode per-file or per-extension is implemented. It's definitely fixed for the .ejs extension, I think we're good to close.