Comments (4)
I will get right on that. Thanks.
from language-javascript-plus.
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.
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.
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)
- Enhancement: Make it work for template tag literals HOT 5
- Enhancement: Allow @html and @css comment triggers HOT 1
- False positive when using html/css at the end of the a template string HOT 2
- Doesnโt provide syntax highlighting except for template strings HOT 7
- Syntax highlighting not working HOT 8
- Build error HOT 10
- Does not install HOT 1
- Allow other languages? HOT 3
- Seems broken in 1.41.0 update HOT 6
- It can't install HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from language-javascript-plus.