Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
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

Closed

Description

@dalcala

Description:
Code coloring broken for html file with Embedded JavaScript templates (EJS). I got this file from the Adobe CSS FilterLab repo: https://github.com/adobe/cssfilterlab/blob/master/index.html

Repro using Brackets Sprint 25 on Win 7 and Mac 10.7.

Repro steps:

  1. Get this file and open it in Brackets: https://github.com/adobe/cssfilterlab/blob/master/index.html

Actual results:
The code coloring is broken, starting with this tag: <%- css %>.

brackets-ejs-bug

Expected results:
Code coloring is not broken. Works fine in Sublime Text 2.

Workaround:
None.

Activity

  1. jasonsanjose commented on Jun 7, 2013

    @jasonsanjose
    Member

    Looks like this works in the code mirror demo http://codemirror.net/mode/htmlembedded/. However, we would either need to

    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.

    Reviewed, low priority to @jasonsanjose.

  2. lkcampbell commented on Jun 9, 2013

    @lkcampbell
    Contributor

    I submitted pull request #4166 that implements solution B.

  3. added a commit that references this issue on Jun 12, 2013
  4. lkcampbell commented on Jul 25, 2013

    @lkcampbell
    Contributor

    This should be fixed now. At the very least, this bug should be marked FBNC.

  5. lkcampbell commented on Aug 2, 2013

    @lkcampbell
    Contributor

    @dalcala or @jasonsanjose, when you get a moment, please confirm this fix and close this bug.

  6. peterflynn commented on Aug 3, 2013

    @peterflynn
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions