jonathanwolfe / language-polymer Goto Github PK
View Code? Open in Web Editor NEWPolymer Syntax Highlighting in VS Code
Home Page: https://marketplace.visualstudio.com/items?itemName=jonwolfe.language-polymer
License: MIT License
Polymer Syntax Highlighting in VS Code
Home Page: https://marketplace.visualstudio.com/items?itemName=jonwolfe.language-polymer
License: MIT License
Hi Jonathan,
I've noticed Ctrl
+ /
has no effect when the language is set to Polymer (in any block: style, html, js).
It does work when I switch the language to Vue.
Any ideas on how to fix it?
Thanks :)
Hello,
When associate my file wih the Polymer grammar, the matching brackets are no more highlighted.
Mehrez
Hi,
After I associated HTML files to Polymer syntax I'm unable to format HTML files (alt+shift+f). It says no formatter is associated to Polymer files. Is there a workaround for this issue ?
Thanks.
If I try something like
<script type="module">
import {html} from './node_modules/lit-html/lit-html.js';
const myTemplate = (name) => html`<b>Hello ${name}</b>`;
</script>
in a html file, the html
literal has no coloration at all. Is there a way to enable the colors in html
string literal inside html
type files ?
Thanks
Polymer 3 uses template literals for its html and css templating, will you be adding this highlighting support?
Could you add support for html tag function? More info about html tag function is here
https://www.polymer-project.org/blog/2018-01-18-polymer-3-new-preview.html
Here is example from playground
https://codesandbox.io/s/github/StartPolymer/playgrounds/tree/master/v3/102
static get template() {
return html`
<p>myArray is: [[displayArray(myArray.*)]]</p>
<p>myObject is:</p>
<ul>
<li>firstName: [[displayObjectProperty(myObject.*, 'firstName')]]</li>
<li>lastName: [[displayObjectProperty(myObject.*, 'lastName')]]</li>
<li>employeeNumber: [[displayObjectProperty(myObject.*, 'employeeNumber')]]</li>
<li>birthdate: [[displayObjectProperty(myObject.*, 'birthdate')]]</li>
</ul>
`;
}
We have lit-html extension for default highlighting.
https://marketplace.visualstudio.com/items?itemName=bierner.lit-html
Hi there,
First of all thanks for the extension, it's pretty awesome ๐
I'm wondering, do you have any plans to support syntax highlighting for SCSS?
Syntax highlighting seems to be inconsistent with nested and more complex ampersand rules. Some examples:
How it is | How I'd like it to be |
---|---|
I've looked around and found an example done for Vue.js - the extension is here.
Let me know what you think. If you decide to support it, I could have a stab at it myself, however my knowledge regarding vscode extensions is limited ๐ฉ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.