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": "\"$4\"$5", - "description": "HTML - Defines an area inside an image map", - "scope": "text.html" + "body": "\"$4\"", + "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": "$2$3", - "description": "HTML - Defines graphics", - "scope": "text.html" + "body": "$4", + "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": ["", "\t$1", ""], - "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": "$1$2", - "description": "HTML - Defines a dialog (conversation)", - "scope": "text.html" + "body": ["", "\t$1", ""], + "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": "$2", - "description": "HTML - Defines external interactive content ot plugin", - "scope": "text.html" + "body": "", + "description": "Defines external interactive content or plugin" + }, + "fencedframe": { + "prefix": "fencedframe", + "body": "", + "description": "Defines an iframe with enhanced privacy [Limited support]" }, "fieldset": { "prefix": "fieldset", "body": ["
", "\t$1", "
"], - "description": "HTML - Defines a fieldset", - "scope": "text.html" + "description": "Defines a group of related form controls" }, "figcaption": { "prefix": "figcaption", - "body": "
$1
$2", - "description": "HTML - Defines a caption for a figure", - "scope": "text.html" + "body": "
$1
", + "description": "Defines a caption for a figure" }, "figure": { "prefix": "figure", "body": ["
", "\t$1", "
"], - "description": "HTML - Defines a group of media content, and their caption", - "scope": "text.html" + "description": "Defines self‑contained content with an optional caption" }, "footer": { "prefix": "footer", - "body": [""], - "description": "HTML - Defines a footer for a section or page", - "scope": "text.html" + "body": [""], + "description": "Defines a footer for a section or page" }, "form": { "prefix": "form", - "body": ["
", "\t$1", "
"], - "description": "HTML - Defines a form", - "scope": "text.html" + "body": ["
", "\t$0", "
"], + "description": "Defines a form" }, "h1": { "prefix": "h1", - "body": "

$1

$2", - "description": "HTML - Defines header 1", - "scope": "text.html" + "body": "

$1

", + "description": "Defines heading level 1" }, "h2": { "prefix": "h2", - "body": "

$1

$2", - "description": "HTML - Defines header 2", - "scope": "text.html" + "body": "

$1

", + "description": "Defines heading level 2" }, "h3": { "prefix": "h3", - "body": "

$1

$2", - "description": "HTML - Defines header 3", - "scope": "text.html" + "body": "

$1

", + "description": "Defines heading level 3" }, "h4": { "prefix": "h4", - "body": "

$1

$2", - "description": "HTML - Defines header 4", - "scope": "text.html" + "body": "

$1

", + "description": "Defines heading level 4" }, "h5": { "prefix": "h5", - "body": "
$1
$2", - "description": "HTML - Defines header 5", - "scope": "text.html" + "body": "
$1
", + "description": "Defines heading level 5" }, "h6": { "prefix": "h6", - "body": "
$1
$2", - "description": "HTML - Defines header 6", - "scope": "text.html" + "body": "
$1
", + "description": "Defines heading level 6" }, "head": { "prefix": "head", - "body": ["", "\t$1", ""], - "description": "HTML - Defines information about the document", - "scope": "text.html" + "body": ["", "\t$0", ""], + "description": "Defines information about the document" }, "header": { "prefix": "header", "body": ["
", "\t$1", "
"], - "description": "HTML - Defines a header for a section of page", - "scope": "text.html" + "description": "Defines a header for a section of page" }, "hgroup": { "prefix": "hgroup", "body": ["
", "\t$1", "
"], - "description": "HTML - Defines information about a section in a document", - "scope": "text.html" + "description": "Defines a heading grouped with subtitle or related text" }, "hr": { "prefix": "hr", "body": "
", - "description": "HTML - Defines a horizontal rule", - "scope": "text.html" + "description": "Defines a horizontal rule" }, "html": { "prefix": "html", "body": ["", "\t$0", ""], - "description": "HTML - Defines an html document", - "scope": "text.html" - }, - "html5": { - "prefix": "html5", - "body": [ - "", - "", - "\t", - "\t\t", - "\t\t", - "\t\t$2", - "\t\t", - "\t", - "\t", - "\t$0", - "\t", - "" - ], - "description": "HTML - Defines a template for a html5 document", - "scope": "text.html" + "description": "Defines an html document" }, "i": { "prefix": "i", - "body": "$1$2", - "description": "HTML - Defines italic text", - "scope": "text.html" + "body": "$1", + "description": "Defines text with alternate emphasis" + }, + "id (attribute)": { + "prefix": "id", + "body": "id=\"$1\"", + "description": "Defines a unique identifier for an element" }, "iframe": { "prefix": "iframe", - "body": "$3", - "description": "HTML - Defines an inline sub window", - "scope": "text.html" + "body": "", + "description": "Defines a frame for embedding another document" }, "img": { "prefix": "img", - "body": "\"$2\"$3", - "description": "HTML - Defines an image", - "scope": "text.html" + "body": "\"$4\"", + "description": "Defines an image" }, "input": { "prefix": "input", - "body": "$4", - "description": "HTML - Defines an input field", - "scope": "text.html" + "body": "", + "description": "Defines an input field" }, "ins": { "prefix": "ins", - "body": "$1$2", - "description": "HTML - Defines inserted text", - "scope": "text.html" - }, - "keygen": { - "prefix": "keygen", - "body": "$2", - "description": "HTML - Defines a generated key in a form", - "scope": "text.html" + "body": "$1", + "description": "Defines inserted text" }, "kbd": { "prefix": "kbd", - "body": "$1$2", - "description": "HTML - Defines keyboard text", - "scope": "text.html" + "body": "$1", + "description": "Defines keyboard input" }, "label": { "prefix": "label", - "body": "$3", - "description": "HTML - Defines an inline window", - "scope": "text.html" + "body": "", + "description": "Defines a label for a form element" }, "legend": { "prefix": "legend", - "body": "$1$2", - "description": "HTML - Defines a title in a fieldset", - "scope": "text.html" + "body": "$1", + "description": "Defines a title in a fieldset" }, "li": { "prefix": "li", - "body": "
  • $1
  • $2", - "description": "HTML - Defines a list item", - "scope": "text.html" + "body": "
  • $1
  • ", + "description": "Defines a list item" }, "link": { "prefix": "link", - "body": "$4", - "description": "HTML - Defines a resource reference", - "scope": "text.html" + "body": "", + "description": "Defines a resource reference" }, "main": { "prefix": "main", - "body": ["
    ", "\t$1", "
    "], - "description": "HTML - Defines an image map", - "scope": "text.html" + "body": ["
    ", "\t$0", "
    "], + "description": "Defines the main content of the document" }, "map": { "prefix": "map", - "body": ["", "\t$2", ""], - "description": "HTML - Defines an image map", - "scope": "text.html" + "body": ["", "\t$0", ""], + "description": "Defines an image map" }, "mark": { "prefix": "mark", - "body": "$1$2", - "description": "HTML - Defines marked text", - "scope": "text.html" + "body": "$1", + "description": "Defines marked text" }, "menu": { "prefix": "menu", - "body": ["", "\t$1", ""], - "description": "HTML - Defines a menu list", - "scope": "text.html" - }, - "menuitem": { - "prefix": "menuitem", - "body": "$1$2", - "description": "HTML - Defines a menu item [firefox only]", - "scope": "text.html" + "body": ["", "\t$0", ""], + "description": "Defines a menu list" }, "meta": { "prefix": "meta", - "body": "$3", - "description": "HTML - Defines meta information", - "scope": "text.html" + "body": "", + "description": "Defines metadata about the documentn" }, "meter": { "prefix": "meter", - "body": "$2$3", - "description": "HTML - Defines measurement within a predefined range", - "scope": "text.html" + "body": "$4", + "description": "Defines measurement within a predefined range" }, "nav": { "prefix": "nav", - "body": [""], - "description": "HTML - Defines navigation links", - "scope": "text.html" + "body": [""], + "description": "Defines navigation links" }, "noscript": { "prefix": "noscript", - "body": [""], - "description": "HTML - Defines a noscript section", - "scope": "text.html" + "body": "", + "description": "Defines content to show when scripts are disabled or unsupported" }, "object": { "prefix": "object", - "body": "$4$5", - "description": "HTML - Defines an embedded object", - "scope": "text.html" + "body": "$4", + "description": "Defines an embedded object" }, "ol": { "prefix": "ol", - "body": ["
      ", "\t$1", "
    "], - "description": "HTML - Defines an ordered list", - "scope": "text.html" + "body": ["
      ", "\t$0", "
    "], + "description": "Defines an ordered list" + }, + "ol.": { + "prefix": "ol.", + "body": ["
      ", "\t$0", "
    "], + "description": "Defines an ordered list" }, "optgroup": { "prefix": "optgroup", - "body": ["", "\t$1", ""], - "description": "HTML - Defines an option group", - "scope": "text.html" + "body": ["", "\t$0", ""], + "description": "Defines an option group" }, "option": { "prefix": "option", - "body": "$3", - "description": "HTML - Defines an option in a drop-down list", - "scope": "text.html" + "body": "", + "description": "Defines an option in a drop-down list" }, "output": { "prefix": "output", - "body": "$3$4", - "description": "HTML - Defines some types of output", - "scope": "text.html" + "body": "$3", + "description": "Defines the result of a calculation or user action" }, "p": { "prefix": "p", - "body": "

    $1

    $2", - "description": "HTML - Defines a paragraph", - "scope": "text.html" + "body": ["

    ", "\t$1", "

    "], + "description": "Defines a paragraph" + }, + "p.": { + "prefix": "p.", + "body": ["

    ", "\t$2", "

    "], + "description": "Defines a paragraph" }, "param": { "prefix": "param", - "body": "$3", - "description": "HTML - Defines a parameter for an object", - "scope": "text.html" + "body": "", + "description": "Defines a parameter for an object [DEPRECATED]" + }, + "picture": { + "prefix": "picture", + "body": ["", "\t$0", ""], + "description": "Defines a container for responsive images" }, "pre": { "prefix": "pre", - "body": ["
    $1
    "], - "description": "HTML - Defines preformatted text", - "scope": "text.html" + "body": "
    $0
    ", + "description": "Defines preformatted text" }, "progress": { "prefix": "progress", - "body": "$3$4", - "description": "HTML - Defines progress of a task of any kind", - "scope": "text.html" + "body": "$3", + "description": "Defines a visual indicator of task completion" }, "q": { "prefix": "q", - "body": "$1$2", - "description": "HTML - Defines a short quotation", - "scope": "text.html" + "body": "$1", + "description": "Defines a short quotation" + }, + "rb": { + "prefix": "rb", + "body": "$1", + "description": "Defines a base text element for ruby annotations [DEPRECATED]" }, "rp": { "prefix": "rp", - "body": "$1$2", - "description": "HTML - Used in ruby annotations to define what to show browsers that do not support the ruby element", - "scope": "text.html" + "body": "$1", + "description": "Defines what to show to browsers that do not support the ruby element" }, "rt": { "prefix": "rt", - "body": "$1$2", - "description": "HTML - Defines explanation to ruby annotations", - "scope": "text.html" + "body": "$1", + "description": "Defines explanation to ruby annotations" }, "ruby": { "prefix": "ruby", - "body": ["", "$1", ""], - "description": "HTML - Defines ruby annotations", - "scope": "text.html" + "body": "$1", + "description": "Defines ruby annotations" }, "s": { "prefix": "s", - "body": "$1$2", - "description": "HTML - Used to define strikethrough text", - "scope": "text.html" + "body": "$1", + "description": "Defines strikethrough text" }, "samp": { "prefix": "samp", - "body": "$1$2", - "description": "HTML - Defines sample computer code", - "scope": "text.html" + "body": "$1", + "description": "Defines sample computer code" }, "script": { "prefix": "script", - "body": [""], - "description": "HTML - Defines a script", - "scope": "text.html" + "body": "", + "description": "Defines a script or links to an external script" + }, + "search": { + "prefix": "search", + "body": ["", "\t$0", ""], + "description": "Defines a container for search/filter UI" }, "section": { "prefix": "section", - "body": ["
    ", "\t$1", "
    "], - "description": "HTML - Defines a section", - "scope": "text.html" + "body": ["
    ", "\t$0", "
    "], + "description": "Defines a section in a document" }, "select": { "prefix": "select", - "body": [""], - "description": "HTML - Defines a selectable list", - "scope": "text.html" + "body": [""], + "description": "Defines a selectable list with options" + }, + "selectedcontent": { + "prefix": "selectedcontent", + "body": "", + "description": "Defines content representing the selected option in a $4", - "description": "HTML - Defines a text area", - "scope": "text.html" + "body": "", + "description": "Defines a text area" }, "tfoot": { "prefix": "tfoot", - "body": ["", "\t$1", ""], - "description": "HTML - Defines a table footer", - "scope": "text.html" + "body": ["", "\t$0", ""], + "description": "Defines a table footer" }, "thead": { "prefix": "thead", - "body": ["", "$1", ""], - "description": "HTML - Defines a table head", - "scope": "text.html" + "body": ["", "\t$0", ""], + "description": "Defines a table head" }, "th": { "prefix": "th", - "body": "$1$2", - "description": "HTML - Defines a table header", - "scope": "text.html" + "body": "$1", + "description": "Defines a table header" }, "time": { "prefix": "time", - "body": "$3", - "description": "HTML - Defines a date/time", - "scope": "text.html" + "body": "", + "description": "Defines a machine-readable date or time" }, "title": { "prefix": "title", - "body": "$1$2", - "description": "HTML - Defines the document title", - "scope": "text.html" + "body": "$1", + "description": "Defines the document title" }, "tr": { "prefix": "tr", - "body": "$1$2", - "description": "HTML - Defines a table row", - "scope": "text.html" + "body": ["", "\t$0", ""], + "description": "Defines a table row" }, "track": { "prefix": "track", - "body": "$5", - "description": "HTML - Defines a table row", - "scope": "text.html" + "body": "", + "description": "Defines text tracks for video or audio" }, "u": { "prefix": "u", - "body": "$1$2", - "description": "HTML - Used to define underlined text", - "scope": "text.html" + "body": "$1", + "description": "Defines underlined text" }, "ul": { "prefix": "ul", - "body": [""], - "description": "HTML - Defines an unordered list", - "scope": "text.html" + "body": [""], + "description": "Defines an unordered list" + }, + "ul.": { + "prefix": "ul.", + "body": [""], + "description": "Defines an unordered list" }, "var": { "prefix": "var", - "body": "$1$2", - "description": "HTML - Defines a variable", - "scope": "text.html" + "body": "$1", + "description": "Defines text representing a variable" }, "video": { "prefix": "video", "body": [ - "