question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to embed text.html.basic into javascript template tags?

See original GitHub issue

I am using this configuration:

{
    "defaults": {
        "comma_operator": false,
        "custom_tagged_literals": false,
        "es_decorators": true,
        "flow_types": false,
        "jsx": false,
    },

    "configurations": {
        "Default": {},
        "React": {
            "custom_template_tags": {
                "style": "scope:text.html.basic"
            },
        }
    },

    "auto_build": true,
    "jsx_close_tag": true
}

But the file still not highlighting html:

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
string-areebcommented, Nov 29, 2018

I think a better solution will be to allow users to do things like this VS Code plugin - https://marketplace.visualstudio.com/items?itemName=bierner.comment-tagged-templates

0reactions
string-areebcommented, Nov 30, 2018

Thanks. Created as #49

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Content Template element - HTML - MDN Web Docs
First we start with the HTML portion of the example. ... First, we have a table into which we will later insert content...
Read more >
HTML embed Tag - W3Schools
The <embed> tag defines a container for an external resource, such as a web page, a picture, a media player, or a plug-in...
Read more >
How To Add JavaScript to HTML | DigitalOcean
You can add JavaScript code in an HTML document by employing the dedicated HTML tag <script> that wraps around JavaScript code.
Read more >
Embedding JavaScript in HTML - w3resource
An html document is made up of html elements, html element attributes, comments, special characters and doctype.
Read more >
How to syntax-highlight HTML inside JavaScript strings in ...
Open an issue in sublimehq's Packages repo on Github and make a request using the [JavaScript] tag. In the latest version of JavaScript.sublime- ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found