323: Needed different snippets for HTML and JS
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"name": "quill",
|
||||
"displayName": "Quill",
|
||||
"description": "HTML/CSS Syntax highlighting, best used with the Quill framework",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"publisher": "capturedsun",
|
||||
"icon": "docs/Quill.png",
|
||||
"engines": {
|
||||
@@ -51,7 +51,11 @@
|
||||
"snippets": [
|
||||
{
|
||||
"language": "javascript",
|
||||
"path": "./snippets.json"
|
||||
"path": "./snippets-js.json"
|
||||
},
|
||||
{
|
||||
"language": "html",
|
||||
"path": "./snippets-html.json"
|
||||
}
|
||||
],
|
||||
"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