Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting within ES6 template strings #14038

Open
core-ai-bot opened this issue Aug 31, 2021 · 1 comment
Open

Syntax highlighting within ES6 template strings #14038

core-ai-bot opened this issue Aug 31, 2021 · 1 comment

Comments

@core-ai-bot
Copy link
Member

Issue by ni-vo
Thursday Sep 28, 2017 at 03:57 GMT
Originally opened as adobe/brackets#13740


Description

Is it possible (with configuration or addons) to apply syntax highlighting (in my case HTML) to ES6 template strings? Take for example, an angular 1.x component file:

(function () {
    "use strict";
    
    angular.module("app").component("example", {
        template: `
            <div layout="row" layout-align="end center">
                <md-button class="md-raised md-default">Cancel</md-button>
                <md-button class="md-raised md-primary">Submit</md-button>
            </div>
        `,
        
        controller: function () {
            var ctrl = this;
        }
    });
})();

Relevant issue on the Atom GitHub: TypeStrong/atom-typescript#818

@core-ai-bot
Copy link
Member Author

Comment by petetnt
Thursday Sep 28, 2017 at 20:35 GMT


This would be real nice 👌 might have to happen upstream in https://github.com/codemirror/CodeMirror though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant