forked from 0x00000001A/es6-string-html
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: syntax highlighting for CSS in ES6 template literals
- Loading branch information
Showing
13 changed files
with
37 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
node_modules | ||
/node_modules/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.vscode/** | ||
.vscode-test/** | ||
.history/** | ||
.gitignore |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,27 @@ | ||
# ES6 String HTML | ||
> [VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=Tobermory.es6-string-html) | ||
# ES6 String CSS | ||
> [VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=bashmish.es6-string-css) | ||
Adds syntax highlight support for code, placed in es6 multiline strings: | ||
- HTML | ||
- SQL | ||
Adds syntax highlight support for code, placed in ES6 template literals: | ||
- CSS | ||
|
||
## Installation | ||
|
||
- Install `es6-string-html` from extensions (`ctrl + shift + x`) | ||
- Install `es6-string-css` from extensions (`ctrl + shift + x`) | ||
|
||
## Example | ||
|
||
![Example](docs/demo.png) | ||
|
||
## Usage | ||
|
||
Simply insert the comment /\*html\*/ or `html` (or sql instead of 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`) | ||
Simply insert `css` or the comment `/*css*/`, `/*inline-css*/` before a template literal. | ||
|
||
> Tip: Comment in the beginning of es6 string is required | ||
> Tip: Comment in the beginning of untagged template literal 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*/` \`\` | ||
## Credits | ||
|
||
## Donation | ||
|
||
If this project help you reduce time to develop, you can give me a cup of coffee :) | ||
|
||
[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=68P8BFSZPG5H2) | ||
|
||
## 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 | ||
|
||
### [1.6.0] - 2018-08-13 | ||
- Add SQL support. Beta | ||
|
||
### [1.6.0] - 2018-08-13 | ||
- Improve support for html function | ||
|
||
### [1.7.0] - 2018-08-14 | ||
- Improve html function support | ||
|
||
### [1.7.1] - 2018-08-15 | ||
- Improve single-line comments support | ||
- Disable hotkeys | ||
----------------------------------------------------------------------------------------------------------- | ||
|
||
**Enjoy!** | ||
This is a fork of the awesome extension [es6-string-html](https:/mydesireiscoma/es6-string-html/). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.