diff --git a/snippets/html.json b/snippets/html.json
index 02456166..c5bdddf7 100644
--- a/snippets/html.json
+++ b/snippets/html.json
@@ -1,787 +1,668 @@
{
"!": {
- "prefix": "!",
+ "prefix": ["!", "html5"],
"body": [
"",
- "",
+ "",
"
",
"\t",
"\t",
"\t${5:Document}",
"",
"",
- "\t${6}",
+ "\t${0}",
"",
""
],
- "description": "HTML - Defines a template for a html5 document",
- "scope": "text.html"
+ "description": "Defines a template for an HTML5 document"
},
"doctype": {
- "prefix": "doctype",
- "body": ["", "$1"],
- "description": "HTML - Defines the document type",
- "scope": "text.html"
+ "prefix": ["!!!", "doctype"],
+ "body": ["", "$0"],
+ "description": "Defines the document type"
},
"a": {
"prefix": "a",
- "body": "$2$3",
- "description": "HTML - Defines a hyperlink",
- "scope": "text.html"
+ "body": "$2",
+ "description": "Defines a hyperlink"
},
"abbr": {
"prefix": "abbr",
- "body": "$2$3",
- "description": "HTML - Defines an abbreviation",
- "scope": "text.html"
+ "body": "$2",
+ "description": "Defines an abbreviation"
},
"address": {
"prefix": "address",
- "body": ["", "$1", ""],
- "description": "HTML - Defines an address element",
- "scope": "text.html"
+ "body": ["", "\t$0", ""],
+ "description": "Defines an address element"
},
"area": {
"prefix": "area",
- "body": "$5",
- "description": "HTML - Defines an area inside an image map",
- "scope": "text.html"
+ "body": "",
+ "description": "Defines an area inside an image map"
},
"article": {
"prefix": "article",
- "body": ["", "\t$1", ""],
- "description": "HTML - Defines an article",
- "scope": "text.html"
+ "body": ["", "\t$0", ""],
+ "description": "Defines an article"
},
"aside": {
"prefix": "aside",
- "body": ["$2"],
- "description": "HTML - Defines content aside from the page content",
- "scope": "text.html"
+ "body": [""],
+ "description": "Defines content aside from the page content"
},
"audio": {
"prefix": "audio",
- "body": [""],
- "description": "HTML - Defines sounds content",
- "scope": "text.html"
+ "body": [""],
+ "description": "Defines embedded audio content"
},
"b": {
"prefix": "b",
- "body": "$1$2",
- "description": "HTML - Defines bold text",
- "scope": "text.html"
+ "body": "$1",
+ "description": "Defines bold text"
},
"base": {
"prefix": "base",
- "body": "$3",
- "description": "HTML - Defines a base URL for all the links in a page",
- "scope": "text.html"
+ "body": "",
+ "description": "Defines a base URL for all the links in a page"
},
"bdi": {
"prefix": "bdi",
- "body": "$1$2",
- "description": "HTML - Used to isolate text that is of unknown directionality",
- "scope": "text.html"
+ "body": "$1",
+ "description": "Defines isolated text that is of unknown directionality"
},
"bdo": {
"prefix": "bdo",
- "body": ["", "$2", ""],
- "description": "HTML - Defines the direction of text display",
- "scope": "text.html"
+ "body": "$2",
+ "description": "Defines the direction of text display"
},
"big": {
"prefix": "big",
- "body": "$1$2",
- "description": "HTML - Used to make text bigger",
- "scope": "text.html"
+ "body": "$1",
+ "description": "Defines bigger text [DEPRECATED]"
},
"blockquote": {
"prefix": "blockquote",
- "body": ["", "\t$1", "
"],
- "description": "HTML - Defines a long quotation",
- "scope": "text.html"
+ "body": ["", "\t$0", "
"],
+ "description": "Defines a long quotation"
},
"body": {
"prefix": "body",
"body": ["", "\t$0", ""],
- "description": "HTML - Defines the body element",
- "scope": "text.html"
+ "description": "Defines the body element"
},
"br": {
"prefix": "br",
"body": "
",
- "description": "HTML - Inserts a single line break",
- "scope": "text.html"
+ "description": "Defines a single line break"
},
"button": {
"prefix": "button",
- "body": "$3",
- "description": "HTML - Defines a push button",
- "scope": "text.html"
+ "body": "",
+ "description": "Defines a clickable button"
},
"canvas": {
"prefix": "canvas",
- "body": "$3",
- "description": "HTML - Defines graphics",
- "scope": "text.html"
+ "body": "",
+ "description": "Defines a container for graphics drawn with JavaScript"
},
"caption": {
"prefix": "caption",
- "body": "$1$2",
- "description": "HTML - Defines a table caption",
- "scope": "text.html"
+ "body": "$1",
+ "description": "Defines a table caption"
+ },
+ "center": {
+ "prefix": "center",
+ "body": "$1",
+ "description": "Defines center-aligned text [DEPRECATED]"
},
"cite": {
"prefix": "cite",
- "body": "$1$2",
- "description": "HTML - Defines a citation",
- "scope": "text.html"
+ "body": "$1",
+ "description": "Defines the title of a creative work"
+ },
+ "class (attribute)": {
+ "prefix": "class",
+ "body": "class=\"$1\"",
+ "description": "Defines one or more class names for an element"
},
"code": {
"prefix": "code",
- "body": "$1$2",
- "description": "HTML - Defines computer code text",
- "scope": "text.html"
+ "body": "$1",
+ "description": "Defines computer code text"
},
"col": {
"prefix": "col",
- "body": "$2",
- "description": "HTML - Defines attributes for table columns",
- "scope": "text.html"
+ "body": "",
+ "description": "Defines properties for one or more table columns"
},
"colgroup": {
"prefix": "colgroup",
- "body": ["", "\t$1", ""],
- "description": "HTML - Defines group of table columns",
- "scope": "text.html"
+ "body": ["", "\t$0", ""],
+ "description": "Defines group of table columns"
},
- "command": {
- "prefix": "command",
- "body": "$1$2",
- "description": "HTML - Defines a command button [not supported]",
- "scope": "text.html"
+ "data": {
+ "prefix": "data",
+ "body": "$2",
+ "description": "Defines a machine‑readable value for its content"
},
"datalist": {
"prefix": "datalist",
"body": [""],
- "description": "HTML - Defines a dropdown list",
- "scope": "text.html"
+ "description": "Defines a list of predefined options for an input [Limited support]"
},
"dd": {
"prefix": "dd",
- "body": "$1$2",
- "description": "HTML - Defines a definition description",
- "scope": "text.html"
+ "body": "$1",
+ "description": "Defines a definition description"
},
"del": {
"prefix": "del",
- "body": "$1$2",
- "description": "HTML - Defines deleted text",
- "scope": "text.html"
+ "body": "$1",
+ "description": "Defines deleted text"
},
"details": {
"prefix": "details",
- "body": ["", "\t$1", " "],
- "description": "HTML - Defines details of an element",
- "scope": "text.html"
+ "body": ["", "\t$0", " "],
+ "description": "Defines a disclosure widget that shows or hides additional content"
},
"dialog": {
"prefix": "dialog",
- "body": "$2",
- "description": "HTML - Defines a dialog (conversation)",
- "scope": "text.html"
+ "body": [""],
+ "description": "Defines a dialog box or modal window"
},
"dfn": {
"prefix": "dfn",
- "body": "$1$2",
- "description": "HTML - Defines a definition term",
- "scope": "text.html"
+ "body": "$1",
+ "description": "Defines a definition term"
},
"div": {
"prefix": "div",
"body": ["", "\t$1", "
"],
- "description": "HTML - Defines a section in a document",
- "scope": "text.html"
+ "description": "Defines a generic block-level container"
+ },
+ "div.": {
+ "prefix": "div.",
+ "body": ["", "\t$2", "
"],
+ "description": "Defines a generic block-level container"
+ },
+ "div#": {
+ "prefix": "div#",
+ "body": ["", "\t$2", "
"],
+ "description": "Defines a generic block-level container"
+ },
+ "div.#": {
+ "prefix": "div.#",
+ "body": ["", "\t$3", "
"],
+ "description": "Defines a generic block-level container"
},
"dl": {
"prefix": "dl",
- "body": ["", "\t$1", "
"],
- "description": "HTML - Defines a definition list",
- "scope": "text.html"
+ "body": ["", "\t$0", "
"],
+ "description": "Defines a definition list"
},
"dt": {
"prefix": "dt",
- "body": "$1$2",
- "description": "HTML - Defines a definition term",
- "scope": "text.html"
+ "body": "$1",
+ "description": "Defines a definition term"
},
"em": {
"prefix": "em",
- "body": "$1$2",
- "description": "HTML - Defines emphasized text",
- "scope": "text.html"
+ "body": "$1",
+ "description": "Defines emphasized text"
},
"embed": {
"prefix": "embed",
- "body": "