<?xml version="1.0"?>
<action-recipes>
	
	<action-alias id="com.macrabbit.text-actions.close-tag.alias" category="hidden">
	
		<text-trigger key-equivalent="/">&lt;</text-trigger>
		<action-identifier>com.macrabbit.text-actions.close-tag</action-identifier>
		<language-context>html, xml</language-context>
		
	</action-alias>
	
	<!-- Add support for embedded Javascript and CSS -->
	<action-alias id="com.macrabbit.text-actions.close-tag.alias-embedded" category="hidden">
	
		<text-trigger key-equivalent="/">&lt;</text-trigger>
		<action-identifier>com.macrabbit.text-actions.close-tag</action-identifier>
		<syntax-context>embedded-javascript > embedded.language-root.js, embedded-style > embedded.language-root.css</syntax-context>
		
	</action-alias>
	<action-alias id="com.macrabbit.text-actions.close-tag.alias-embedded-shortcut" category="actions.text.item-based/generic">
	
		<key-equivalent>command option .</key-equivalent>
		<action-identifier>com.macrabbit.text-actions.close-tag</action-identifier>
		<syntax-context>embedded-javascript > embedded.language-root.js, embedded-style > embedded.language-root.css</syntax-context>
		
	</action-alias>
	
	<!-- Built-in snippets -->
	
	<snippet id="com.macrabbit.text-actions.xmlhtml.new-tag" category="actions.text.item-based/xmlhtml">
		<text>&lt;${1:tag}>$0&lt;/${1/([a-zA-Z0-9:\-]*).*/\1/}></text>
		<key-equivalent>command option n</key-equivalent>
		<language-context>html, xml</language-context>
		<when-disabled>hide</when-disabled>
	</snippet>
	
	<snippet id="com.macrabbit.snippets.XMLHTML.doctype.html4strict" category="tools.Snippets">
		<title>HTML 4.01 Strict</title>
		<text><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">]]></text>
		<language-context>html</language-context>
	</snippet>
	
	<snippet id="com.macrabbit.snippets.XMLHTML.doctype.html4transitional" category="tools.Snippets">
		<title>HTML 4.01 Transitional</title>
		<text><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">]]></text>
		<language-context>html</language-context>
	</snippet>
	
	<snippet id="com.macrabbit.snippets.XMLHTML.doctype.xhtml1strict" category="tools.Snippets">
		<title>XHTML 1.0 Strict</title>
		<text><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">]]></text>
		<language-context>html</language-context>
	</snippet>
	
	<snippet id="com.macrabbit.snippets.XMLHTML.doctype.xhtml1transitional" category="tools.Snippets">
		<title>XHTML 1.0 Transitional</title>
		<text><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">]]></text>
		<language-context>html</language-context>
	</snippet>
	
	<snippet id="com.macrabbit.snippets.XMLHTML.doctype.xhtml11" category="tools.Snippets">
		<title>XHTML 1.1</title>
		<text><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]></text>
		<language-context>html</language-context>
	</snippet>
	
	<snippet id="com.macrabbit.snippets.XMLHTML.doctype.html5" category="tools.Snippets">
		<title>HTML5</title>
		<text><![CDATA[<!DOCTYPE html>]]></text>
		<language-context>html</language-context>
	</snippet>
	
	<snippet id="com.macrabbit.snippets.XMLHTML.cdata" category="tools.Snippets/XMLHTML">
		<title>CDATA</title>
		<text>&lt;![CDATA[${1:${EDITOR_SELECTION:character data}}]]&gt;</text>
		<language-context>xml</language-context>
		<text-trigger>cdata</text-trigger>
	</snippet>
	
	<snippet id="com.macrabbit.snippets.XMLHTML.xmldeclaration" category="tools.Snippets/XMLHTML">
		<title>XML Declaration</title>
		<language-context>xml</language-context>
		<text><![CDATA[<?xml version="${1:1.0}"${2: encoding="${3:UTF-8}"}?>]]></text>
	</snippet>
	
	<!-- Page templates -->
	
	<snippet id="com.macrabbit.snippets.XMLHTML.template.html5" category="tools.Snippets">
		<title>HTML5 Page</title>
		<language-context>html</language-context>
		<text><![CDATA[<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>$1</title>
	
	<!--[if lt IE 9]>
	<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
</head>
<body>
	$2
</body>
</html>]]></text>
	</snippet>
	
	<snippet id="com.macrabbit.snippets.XMLHTML.template.xhtml" category="tools.Snippets">
		<title>XHTML Page</title>
		<language-context>html</language-context>
		<text><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>$1</title>
</head>
<body>
	$2
</body>
</html>]]></text>
	</snippet>
	
</action-recipes>
