Skip to content

Commit

Permalink
Added some more gdoc snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
gcrick committed Nov 22, 2012
1 parent db23c33 commit 25ab5b5
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Doc/apilink.sublime-snippet
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
[${1:class}|api:${2:package}.${1:class}]
]]></content>
<tabTrigger>api..</tabTrigger>
<description>link to api in GrailsDoc</description>
<scope>source.grails.gdoc</scope>
</snippet>
8 changes: 8 additions & 0 deletions Doc/link.sublime-snippet
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
[${1:linkText}|${2:url}]
]]></content>
<tabTrigger>link..</tabTrigger>
<description>external link in GrailsDoc</description>
<scope>source.grails.gdoc</scope>
</snippet>
10 changes: 10 additions & 0 deletions Doc/note.sublime-snippet
@@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[
{note}
${1:message}
{note}
]]></content>
<tabTrigger>note..</tabTrigger>
<description>{note} in GrailsDoc</description>
<scope>source.grails.gdoc</scope>
</snippet>
8 changes: 8 additions & 0 deletions Doc/reflink.sublime-snippet
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
[${1:category}|${2:referenceItem}]
]]></content>
<tabTrigger>ref..</tabTrigger>
<description>link to reference item in GrailsDoc</description>
<scope>source.grails.gdoc</scope>
</snippet>
8 changes: 8 additions & 0 deletions Doc/sectionlink.sublime-snippet
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
[${1:linkText}|guide:${2:sectionName}]
]]></content>
<tabTrigger>section..</tabTrigger>
<description>link to a section in GrailsDoc</description>
<scope>source.grails.gdoc</scope>
</snippet>
11 changes: 11 additions & 0 deletions Doc/table.sublime-snippet
@@ -0,0 +1,11 @@
<snippet>
<content><![CDATA[
{table}
*${1:Header1}* | *${2:Header2}*
${3:Cell1} | ${4:Cell2}
{table}
]]></content>
<tabTrigger>table..</tabTrigger>
<description>{table} in GrailsDoc</description>
<scope>source.grails.gdoc</scope>
</snippet>
10 changes: 10 additions & 0 deletions Doc/warning.sublime-snippet
@@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[
{warning}
${1:message}
{warning}
]]></content>
<tabTrigger>warning..</tabTrigger>
<description>{warning} in GrailsDoc</description>
<scope>source.grails.gdoc</scope>
</snippet>
10 changes: 10 additions & 0 deletions Doc/xmlcode.sublime-snippet
@@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[
{code:xml}
${1:source}
{code}
]]></content>
<tabTrigger>xml..</tabTrigger>
<description>{code:xml} in GrailsDoc</description>
<scope>source.grails.gdoc</scope>
</snippet>

0 comments on commit 25ab5b5

Please sign in to comment.