Coder Social home page Coder Social logo

Comments (4)

xeaone avatar xeaone commented on August 21, 2024

I will get right on that. Thanks.

from language-javascript-plus.

xeaone avatar xeaone commented on August 21, 2024

I am not able to reproduce this issue. Can you share a bit of code that you found the issue with?

from language-javascript-plus.

samnau avatar samnau commented on August 21, 2024

Well when I use a template string like this:

const htmlTemplate = `
<div>
Content
</div>
`

The HTML syntax highlighting stops working and it's just a normal string again. If I use it as a var or a let it still works.

Now to be specific, I was using the the Atom grammar setting for Javascript (Rails). I found a workaround by setting the grammar to Regular Expressions (Javascript) which allows your package to start working again. Unfortunately, I lose most of my JS highlighting that isn't part of the template string.

from language-javascript-plus.

xeaone avatar xeaone commented on August 21, 2024

Ah yes the variable or property name currently supported for HTML are html and template. It can also be upper or lower case . So instead of const htmlTemplate do const template or const html

from language-javascript-plus.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.