[gedit] Add markdown snippets



commit cd7185f1aab8b4ad2f32e1d4f414735dd46ecfc4
Author: Jean-Philippe Fleury <contact jpfleury net>
Date:   Sun Jul 3 21:35:32 2011 +0200

    Add markdown snippets
    
    https://bugzilla.gnome.org/show_bug.cgi?id=650253

 plugins/snippets/data/Makefile.am  |    1 +
 plugins/snippets/data/markdown.xml |   98 ++++++++++++++++++++++++++++++++++++
 2 files changed, 99 insertions(+), 0 deletions(-)
---
diff --git a/plugins/snippets/data/Makefile.am b/plugins/snippets/data/Makefile.am
index 8ec4041..00f104a 100644
--- a/plugins/snippets/data/Makefile.am
+++ b/plugins/snippets/data/Makefile.am
@@ -16,6 +16,7 @@ snippets_DATA = \
 	java.xml \
 	latex.xml \
 	mallard.xml \
+	markdown.xml \
 	perl.xml \
 	php.xml \
 	python.xml \
diff --git a/plugins/snippets/data/markdown.xml b/plugins/snippets/data/markdown.xml
new file mode 100644
index 0000000..e49209b
--- /dev/null
+++ b/plugins/snippets/data/markdown.xml
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<snippets language="Markdown">
+  <snippet id="atx-header">
+    <text><![CDATA[${1:#} ${2:Header} $1
+
+]]></text>
+    <tag>h</tag>
+    <description>Header (atx-style)</description>
+  </snippet>
+
+  <snippet id="setext-header-1">
+    <text><![CDATA[${1:Header}
+===============
+
+]]></text>
+    <tag>Hs</tag>
+    <description>Header 1 (setext-style)</description>
+  </snippet>
+
+  <snippet id="setext-header-2">
+    <text><![CDATA[${1:Header}
+---------------
+
+]]></text>
+    <tag>hs</tag>
+    <description>Header 2 (setext-style)</description>
+  </snippet>
+
+  <snippet id="horizontal-rule">
+    <text><![CDATA[***************
+
+$0]]></text>
+    <tag>hr</tag>
+    <description>Horizontal Rule</description>
+  </snippet>
+
+  <snippet id="unordered-list">
+    <text><![CDATA[* $1
+* $2
+* $3
+* $4
+
+]]></text>
+    <tag>ul</tag>
+    <description>Unordered List</description>
+  </snippet>
+
+  <snippet id="ordered-list">
+    <text><![CDATA[1. $1
+2. $2
+3. $3
+4. $4
+
+]]></text>
+    <tag>ol</tag>
+    <description>Ordered List</description>
+  </snippet>
+
+  <snippet id="code-span">
+    <text><![CDATA[\`${1:$GEDIT_SELECTED_TEXT}\`]]></text>
+    <tag>code</tag>
+    <description>Wrap Selection as Code Span</description>
+    <accelerator><![CDATA[<Control><Alt>c]]></accelerator>
+  </snippet>
+
+  <snippet id="inline-link">
+    <text><![CDATA[[${1:$GEDIT_SELECTED_TEXT}](${2:URL})]]></text>
+    <tag>a</tag>
+    <description>Wrap Selection as Inline Link</description>
+    <accelerator><![CDATA[<Control><Alt>a]]></accelerator>
+  </snippet>
+
+  <snippet id="reference-link">
+    <text><![CDATA[[${1:$GEDIT_SELECTED_TEXT}][${2:link label}]]]></text>
+    <tag>aref</tag>
+    <description>Wrap Selection as Reference Link</description>
+    <accelerator><![CDATA[<Control><Alt>r]]></accelerator>
+  </snippet>
+
+  <snippet id="link-definition">
+    <text><![CDATA[[${1:link label}]: ${2:URL}
+]]></text>
+    <tag>adef</tag>
+    <description>Link Definition</description>
+  </snippet>
+
+  <snippet id="inline-image">
+    <text><![CDATA[![${1:alt text}](${2:URL})]]></text>
+    <tag>img</tag>
+    <description>Inline Image</description>
+  </snippet>
+
+  <snippet id="reference-image">
+    <text><![CDATA[![${1:alt text}][${2:image label}]]]></text>
+    <tag>iref</tag>
+    <description>Reference Image</description>
+  </snippet>
+</snippets>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]