Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Syntax highlighting within ES6 template strings #13740

Open
ni-vo opened this issue Sep 28, 2017 · 1 comment
Open

Syntax highlighting within ES6 template strings #13740

ni-vo opened this issue Sep 28, 2017 · 1 comment

Comments

@ni-vo
Copy link

ni-vo commented Sep 28, 2017

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

@petetnt
Copy link
Collaborator

petetnt commented Sep 28, 2017

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

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

No branches or pull requests

2 participants