323: Needed different snippets for HTML and JS
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
"name": "quill",
|
"name": "quill",
|
||||||
"displayName": "Quill",
|
"displayName": "Quill",
|
||||||
"description": "HTML/CSS Syntax highlighting, best used with the Quill framework",
|
"description": "HTML/CSS Syntax highlighting, best used with the Quill framework",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"publisher": "capturedsun",
|
"publisher": "capturedsun",
|
||||||
"icon": "docs/Quill.png",
|
"icon": "docs/Quill.png",
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -51,7 +51,11 @@
|
|||||||
"snippets": [
|
"snippets": [
|
||||||
{
|
{
|
||||||
"language": "javascript",
|
"language": "javascript",
|
||||||
"path": "./snippets.json"
|
"path": "./snippets-js.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"language": "html",
|
||||||
|
"path": "./snippets-html.json"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"grammars": [
|
"grammars": [
|
||||||
|
|||||||
BIN
VSCode/quill-1.0.2.vsix
Normal file
BIN
VSCode/quill-1.0.2.vsix
Normal file
Binary file not shown.
24
VSCode/snippets-html.json
Normal file
24
VSCode/snippets-html.json
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"*page": {
|
||||||
|
"prefix": "*page",
|
||||||
|
"body": [
|
||||||
|
"<!DOCTYPE html>",
|
||||||
|
"<html lang=\"en\">",
|
||||||
|
" <head>",
|
||||||
|
" <title>Index</title>",
|
||||||
|
" <script type=\"module\">",
|
||||||
|
" import * as quill from './Quill/quill.js';",
|
||||||
|
" window.quill = {};",
|
||||||
|
" Object.entries(quill).forEach(([name, exported]) => window[name] = exported);",
|
||||||
|
" </script>",
|
||||||
|
" <script type=\"module\" src=\"index.js\"></script>",
|
||||||
|
" </head>",
|
||||||
|
" <body>",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
" </body>",
|
||||||
|
"</html>"
|
||||||
|
],
|
||||||
|
"description": "Use the DOM collection of functions"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user