summaryrefslogtreecommitdiffstats
path: root/plugins/snippets/data/html.xml
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/snippets/data/html.xml')
-rw-r--r--plugins/snippets/data/html.xml252
1 files changed, 252 insertions, 0 deletions
diff --git a/plugins/snippets/data/html.xml b/plugins/snippets/data/html.xml
new file mode 100644
index 0000000..dd9faea
--- /dev/null
+++ b/plugins/snippets/data/html.xml
@@ -0,0 +1,252 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<snippets language="HTML">
+ <snippet id="doctype">
+ <text><![CDATA[<!DOCTYPE html>
+]]></text>
+ <description>HTML5 Doctype</description>
+ <tag>doctype</tag>
+ </snippet>
+ <snippet id="doctype-1">
+ <text><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
+]]></text>
+ <description>XHTML — 1.0 Frameset</description>
+ <tag>doctype</tag>
+ </snippet>
+ <snippet id="doctype-2">
+ <text><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+]]></text>
+ <description>XHTML — 1.0 Strict</description>
+ <tag>doctype</tag>
+ </snippet>
+ <snippet id="doctype-3">
+ <text><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+]]></text>
+ <description>XHTML — 1.0 Transitional</description>
+ <tag>doctype</tag>
+ </snippet>
+ <snippet id="doctype-4">
+ <text><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+]]></text>
+ <description>XHTML — 1.1</description>
+ <tag>doctype</tag>
+ </snippet>
+ <snippet id="doctype-5">
+ <text><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+]]></text>
+ <description>HTML — 4.0 Transitional</description>
+ <tag>doctype</tag>
+ </snippet>
+ <snippet id="doctype-6">
+ <text><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+]]></text>
+ <description>HTML — 4.01 Strict</description>
+ <tag>doctype</tag>
+ </snippet>
+ <snippet id="author">
+ <text><![CDATA[<meta name="author" content="${1:author}" />
+$0]]></text>
+ <tag>author</tag>
+ <description>Author</description>
+ </snippet>
+ <snippet id="date">
+ <text><![CDATA[<meta name="date" content="$<1: import time; return time.strftime("%Y-%m-%d") >" />
+$0]]></text>
+ <tag>date</tag>
+ <description>Date</description>
+ </snippet>
+ <snippet id="ref">
+ <text><![CDATA[<a href="${1:http://somesite.com/}">${2:$GEDIT_SELECTED_TEXT}</a>
+]]></text>
+ <accelerator><![CDATA[<Shift><Alt>l]]></accelerator>
+ <description>Wrap Selection as Link</description>
+ <tag>ref</tag>
+ </snippet>
+ <snippet id="open/close">
+ <text><![CDATA[<${1:p}>$GEDIT_SELECTED_TEXT</${1}>]]></text>
+ <accelerator><![CDATA[<Shift><Alt>w]]></accelerator>
+ <description>Wrap Selection in Open/Close Tag</description>
+ </snippet>
+ <snippet id="mailto">
+ <text><![CDATA[<a href="mailto:${1:joe@example.com}?subject=${2:feedback}">${3:email me}</a> $0]]></text>
+ <description>Mail Anchor</description>
+ <tag>mailto</tag>
+ </snippet>
+ <snippet id="base">
+ <text><![CDATA[<base href="$1" ${2}/>$0]]></text>
+ <description>Base</description>
+ <tag>base</tag>
+ </snippet>
+ <snippet id="body">
+ <text><![CDATA[<body id="${1:ID}">
+ $0
+</body>]]></text>
+ <description>Body</description>
+ <tag>body</tag>
+ </snippet>
+ <snippet id="br">
+ <text><![CDATA[<br />
+$0]]></text>
+ <accelerator><![CDATA[<Shift><Control>space]]></accelerator>
+ <description>Br</description>
+ </snippet>
+ <snippet id="button">
+ <text><![CDATA[<button type="button" name="${1:name}" value="${2:caption}" onclick="$3" />$4
+]]></text>
+ <tag>button</tag>
+ <description>Button</description>
+ </snippet>
+ <snippet id="div">
+ <text><![CDATA[<div ${1}>
+ ${0:$GEDIT_SELECTED_TEXT}
+</div>]]></text>
+ <description>Div</description>
+ <tag>div</tag>
+ </snippet>
+ <snippet id="file">
+ <text><![CDATA[<input type="file" name="${1:name}" size="$2" accept="$3" />$0
+]]></text>
+ <tag>file</tag>
+ <description>File</description>
+ </snippet>
+ <snippet id="form">
+ <text><![CDATA[<form action="${1}" method="${2:get}">
+ $0
+
+ <p><input type="submit" value="${3:Continue &rarr;}" /></p>
+</form>]]></text>
+ <description>Form</description>
+ <tag>form</tag>
+ </snippet>
+ <snippet id="h">
+ <text><![CDATA[<h${1:1} id="${2}">${3:$GEDIT_SELECTED_TEXT}</h${1}>
+$0]]></text>
+ <description>Heading</description>
+ <tag>h</tag>
+ </snippet>
+ <snippet id="head">
+ <text><![CDATA[<head>
+ <meta charset="utf-8">
+ <title>${1:Page Title}</title>
+ $0
+</head>]]></text>
+ <description>Head</description>
+ <tag>head</tag>
+ </snippet>
+ <snippet id="image">
+ <text><![CDATA[<img src="${1:path/to/file}" alt="${2:description}" title="${3:tool tip}" width="$4" height="$5" />$0]]></text>
+ <tag>img</tag>
+ <description>Image</description>
+ </snippet>
+ <snippet id="input">
+ <text><![CDATA[<input type="${1:[button,checkbox,color,date,datetime,datetime-local,email,file,hidden,image,month,number,password,radio,range,reset,search,submit,tel,text,url,week]}" name="${2:some_name}" value="${3:default_value}" placeholder="${4:default_placeholder}" id="$5" />]]></text>
+ <description>Input</description>
+ <tag>input</tag>
+ </snippet>
+ <snippet id="li">
+ <text><![CDATA[<li>$1</li>$0]]></text>
+ <tag>li</tag>
+ <description>List Element</description>
+ </snippet>
+ <snippet id="link">
+ <text><![CDATA[<link rel="${1:stylesheet}" href="${2:/css/master.css}">
+$0]]></text>
+ <description>Link</description>
+ <tag>link</tag>
+ </snippet>
+ <snippet id="meta">
+ <text><![CDATA[<meta name="${1:name}" content="${2:content}" />
+$0]]></text>
+ <description>Meta</description>
+ <tag>meta</tag>
+ </snippet>
+ <snippet id="nbsp">
+ <text><![CDATA[&nbsp;]]></text>
+ <accelerator><![CDATA[<Control><Alt>space]]></accelerator>
+ <description>Non-Breaking Space</description>
+ </snippet>
+ <snippet id="noscript">
+ <text><![CDATA[<noscript>$1</noscript>$0]]></text>
+ <tag>noscript</tag>
+ <description>Noscript</description>
+ </snippet>
+ <snippet id="option">
+ <text><![CDATA[<option value="${1:value}">$2</option>$0]]></text>
+ <tag>option</tag>
+ <description>Option</description>
+ </snippet>
+ <snippet id="script">
+ <text><![CDATA[<script type="text/javascript">
+ $0
+</script>]]></text>
+ <description>Script</description>
+ <tag>script</tag>
+ </snippet>
+ <snippet id="scriptsrc">
+ <text><![CDATA[<script src="$1" type="text/javascript"></script>]]></text>
+ <description>Script With External Source</description>
+ <tag>scriptsrc</tag>
+ </snippet>
+ <snippet id="select">
+ <text><![CDATA[<select name="${1:name}">
+ <option value="${2:value}">$3</option>
+ $4
+</select>$0
+]]></text>
+ <tag>select</tag>
+ <description>Select</description>
+ </snippet>
+ <snippet id="span">
+ <text><![CDATA[<span ${1}>$2</span>$0]]></text>
+ <tag>span</tag>
+ <description>Span</description>
+ </snippet>
+ <snippet id="style">
+ <text><![CDATA[<style type="text/css" media="screen">
+ $0
+</style>
+]]></text>
+ <description>Style</description>
+ <tag>style</tag>
+ </snippet>
+ <snippet id="table">
+ <text><![CDATA[<table border="${1:0}" cellspacing="${2:0}" cellpadding="${3:0}">
+ <tr><th>${4:Header}</th></tr>
+ <tr><td>${5:Data}</td></tr>
+ $0
+</table>]]></text>
+ <description>Table</description>
+ <tag>table</tag>
+ </snippet>
+ <snippet id="textarea">
+ <text><![CDATA[<textarea name="${1:Name}" rows="${2:8}" cols="${3:40}">$0</textarea>]]></text>
+ <description>Text Area</description>
+ <tag>textarea</tag>
+ </snippet>
+ <snippet id="title">
+ <text><![CDATA[<title>${1:Page Title}</title>
+$0]]></text>
+ <description>Title</description>
+ <tag>title</tag>
+ </snippet>
+ <snippet id="tr">
+ <text><![CDATA[<tr><td>$1</td></tr>
+$0]]></text>
+ <tag>tr</tag>
+ <description>Table Row</description>
+ </snippet>
+ <snippet id="ul">
+ <text><![CDATA[<ul>
+ <li>$1</li>
+ <li>$2</li>
+ $3
+</ul>
+$0]]></text>
+ <tag>ul</tag>
+ <description>Unordered List</description>
+ </snippet>
+</snippets>