Giter Site home page Giter Site logo

magicanfury / es6-string-html Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 0x00000001a/es6-string-html

0.0 0.0 0.0 402 KB

Highlight code in ES6 multiline strings

Home Page: https://marketplace.visualstudio.com/items?itemName=Tobermory.es6-string-html

License: MIT License

JavaScript 30.52% HTML 35.92% Vue 20.65% Svelte 12.90%

es6-string-html's Introduction

ES6 String HTML

VSCode Marketplace

Open VSX Registry

Adds syntax highlight support for code, placed in es6 multiline strings:

  • HTML (incl. html quoted and unquoted attrs)
  • SQL
  • XML
  • SVG
  • CSS
  • GLSL

Community

Contributors

guicook RobertSasak the-dr-lazy yozman JohnnyLufa

Installation

Donation

If you've found this extension useful, you can give me a cup of coffee :)

paypal

Example

Example

Usage

Simply insert the comment /*html*/ or html (also works with SQL, SVG, XML, just use the appropriate word) before the string (see Requirements "section" for possible values) or select Insert es6-string-html comment/template from the commands menu (ctrl+shift+p or f1)

Tip: Comment in the beginning of es6 string is required

Requirements

  • Visual Studio Code v1.19.0 and higher
  • Comment /*html*/ before the string. (also works with CSS, SQL, SVG, XML, just use the appropriate word) Possible values:
    • /*css*/
    • /*html*/
    • /*inline-html*/
    • /*template*/
    • /*inline-template*/
  • Or
    • html before the string

Release Notes

[...]

  • See changelog for previous notes

[2.7.0] - 2021-04-23

Fixed

  • SQL highlight stops after encountering an identifier delimiter `

[2.8.0] - 2021-04-23

Fixed

  • SQL support for vue files

[2.9.0] - 2021-05-18

Improved

  • CSS support

[2.10.0] - 2021-06-03

Improved

  • GLSL support

[2.11.0] - 2021-10-05

Improved

  • PHP files support

Enjoy!

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.