GithubHelp home page GithubHelp logo

throvn / js-html-template-strings Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 82 KB

Highlights your HTML tags inside of JS' template strings. This is the repo for the vscode extension.

Home Page: https://marketplace.visualstudio.com/items?itemName=Throvn.js-html-template-strings

License: MIT License

javascript syntax-highlighting typescript vscode-extension

js-html-template-strings's Introduction

Hi there ๐Ÿ‘‹

I'm Louis, a self-taught fullstack developer ๐Ÿ’ป currently studying Technology & Management at the Technical University Munich๐Ÿ“— working full time on Dopamining, a crypto startup which incentivises you to overcome your death-valley of motivation.

I have a passion for Webdevelopment, AWS and Go.

My current side project is my Github Page & getting into Vue. I don't have time for a side project. All ๐Ÿ‘€ on dopamining.io.

๐Ÿ’ฌ Stats

Top Langs

๐Ÿ‘€ Things I looked at

  • Node.js
  • MongoDB
  • Typescript
  • Vue.js
  • Swift
  • GoLang
  • Python

Write me a message on LinkedIn.

            โ˜๏ธ            โ˜€๏ธ
   ๐ŸŽˆ    โ˜๏ธ         โ˜๏ธ


______๐ŸŒณ__________๐Ÿƒ_________

js-html-template-strings's People

Contributors

throvn avatar

Watchers

 avatar

js-html-template-strings's Issues

html in template string not being highlighted

I have installed this plugin at v0.0.4 but my template literal strings in .js file are not being highlighted

The stripped down code that is not working is in a file called blah.js

jQuery(document).ready(function(){
    function write_login () {
        jQuery('#pg_content').html(`
                <form id="login_form">
                    <p>
                        Email<br>
                        <input type="text" id="pg_input_email"  />
                    </p>
                    <p>
                        Password<br>
                        <input type="password" id="pg_input_password" />
                    </p>
                    <p>
                        <button type="button" id="submit_button">Submit</button> <span class="loading-spinner"></span>
                    </p>
                </form>
        `)
        jQuery('#submit_button').on('click', function(){
            send_login()
        })
    }
})

and here is a screenshot of what it looks like

image

Expected behaviour

It displays the html in the template string with html highlighting

system

ubuntu 22.04

Vscode:
Version: 1.73.1
Commit: 6261075646f055b99068d3688932416f2346dd3b
Date: 2022-11-09T03:54:53.913Z
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Linux x64 5.15.0-52-generic snap
Sandboxed: No

Plugin version 0.0.4

SVG tag breaks highlighting

Here is an example of the highlighting with an <svg> tag:

image

If I change <svg> to <svgf> then the highlighting looks as expected:

image

This problem also exists for valid SVGs as well:
image

I'm using VSCode with extension version v0.0.4

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.