Permalink
Browse files

Markdown snippets (image, link, footnote)

  • Loading branch information...
1 parent ef692c5 commit 89672267166b464e3ae14e5e347576565537f9ea @sumeetjain committed Aug 26, 2010
View
@@ -13,4 +13,9 @@ Here's a quick rundown of what each snippet does:
- Reset Styles - Type `reset` and hit TAB to insert some CSS reset styles (my own blend - kind of a mix of YUI and Eric Meyer's)
### Javascript
-- jQuery Scope - Type `q` and his TAB to insert an anonymous function that's automatically bound to $(document).ready(). I put all of my jQuery goodness inside of this.
+- jQuery Scope - Type `q` and his TAB to insert an anonymous function that's automatically bound to $(document).ready(). I put all of my jQuery goodness inside of this.
+
+### Markdown
+- Add Footnote - Type `^` and hit TAB to insert a reference and footnote. After hitting TAB, you type the number of the reference. This is one of my favorites.
+- Insert Image - Type `img` and hit TAB to insert an image.
+- Insert Image - Type `a` and hit TAB to insert a link.
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>bundleUUID</key>
+ <string>D99E8C0C-792F-11D9-A212-000D93B3A10E</string>
+ <key>content</key>
+ <string>[^${1:#}]
+
+[^$1]: ${2:Footnote goes here}</string>
+ <key>name</key>
+ <string>Add Footnote</string>
+ <key>tabTrigger</key>
+ <string>^</string>
+ <key>uuid</key>
+ <string>BF70E2B4-7B6F-4A41-8237-798D0E5D5687</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>bundleUUID</key>
+ <string>D99E8C0C-792F-11D9-A212-000D93B3A10E</string>
+ <key>content</key>
+ <string>![${1:Alt Text}](${2:Image Location})</string>
+ <key>name</key>
+ <string>Insert Image</string>
+ <key>tabTrigger</key>
+ <string>img</string>
+ <key>uuid</key>
+ <string>419AED55-E917-4C50-B99E-31E4004294CC</string>
+</dict>
+</plist>
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>bundleUUID</key>
+ <string>D99E8C0C-792F-11D9-A212-000D93B3A10E</string>
+ <key>content</key>
+ <string>[${1:Text}](${2:http://})
+
+${1:$TM_SELECTED_TEXT}</string>
+ <key>name</key>
+ <string>Insert Link</string>
+ <key>tabTrigger</key>
+ <string>a</string>
+ <key>uuid</key>
+ <string>FA9981EE-0C6B-40D4-9590-DB6F02EC1691</string>
+</dict>
+</plist>
@@ -0,0 +1,15 @@
+# TextMate Snippets
+These are bits of code that I use and reuse often. They speed up development and help to keep my coding practices consistent. It's very easy to install one or more of them into your workflow:
+
+1. You must use [TextMate](http://macromates.com). I wrote the snippets myself; but they're exported from TextMate, so I don't know if they'll work with another editor.
+2. Download this repository. Cloning it probably won't help much - just download the source.
+3. Navigate the topic areas in your downloaded folder to find a snippet you think might improve your workflow.
+4. Double-click to install each snippet you have a crush on. You're done.
+
+## Documentation
+Here's a quick rundown of what each snippet does:
+
+### Markdown
+- Add Footnote - Type `^` and hit TAB to insert a reference and footnote. After hitting TAB, you type the number of the reference. This is one of my favorites.
+- Insert Image - Type `img` and hit TAB to insert an image.
+- Insert Image - Type `a` and hit TAB to insert a link.

0 comments on commit 8967226

Please sign in to comment.