GithubHelp home page GithubHelp logo

rodriguezcappsec / 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 95 KB

Highlight html in es6 multiline strings

License: MIT License

JavaScript 100.00%

es6-string-html's Introduction

ES6 String HTML

Adds syntax highlight support for html placed in es6 multiline strings

Installation

  • Install es6-string-html from extensions (ctrl + shift + x)

Example

Example

Usage

Simply insert the comment /*html*/ or html 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 recommended
  • Comment /*html*/ before the string. Possible values:
    • /*html*/
    • /*inline-html*/
    • /*template*/
    • /*inline-template*/
  • Or
    • html before the string

Keybindings

  • ctrl+shift+h - Insert /*html*/
  • ctrl+k h - Insert /*html*/ ``

Donation

If this project help you reduce time to develop, you can give me a cup of coffee :)

paypal

Release Notes

[1.0.0] - 2018-02-02

  • Syntax highlighting for html in es6 multiline strings

[1.1.0] - 2018-03-08

  • Compatibility with Prettier

[1.2.0] - 2018-03-12

  • Commands and keybindings

[1.3.0] - 2018-03-17

  • Syntax highlight without a comment
  • Follow semver

[1.4.0] - 2018-03-22

  • JS Syntax highlight
  • Single-line comment support

[1.5.0] - 2018-03-22

  • Compatibility with Prettier

Enjoy!

es6-string-html's People

Contributors

0x00000001a avatar yozman avatar

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.