Coder Social home page Coder Social logo

jonathanwolfe / language-polymer Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 2.0 218 KB

Polymer Syntax Highlighting in VS Code

Home Page: https://marketplace.visualstudio.com/items?itemName=jonwolfe.language-polymer

License: MIT License

language language-polymer polymer syntax-theme theme vscode

language-polymer's People

Contributors

jonathanwolfe avatar rockingskier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

language-polymer's Issues

Toggle line comment has no effect

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 :)

& symbol in anchor tags

If there is an & symbol in an anchor URL, it interprets the rest of the file as part of the attribute value.
with an ampersand:
image

without one:
image

Obviously, ampersands are "normal" in URLs.

Unable to format polymer files

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.

Support in html files

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

template literal support?

Polymer 3 uses template literals for its html and css templating, will you be adding this highlighting support?

Support for html tag function

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

Support for pre-processor highlighting in style blocks?

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
style-scss style-scss-really

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 ๐Ÿ’ฉ

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.