Skip to content

Commit 95b6c89

Browse files
committed
Initial commit
0 parents  commit 95b6c89

19 files changed

+267
-0
lines changed

README.md

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# GitHub Markdown Snippets
2+
Helpful snippets to get you started with GitHub flavored Markdown by letting you type the plain old HTML tag names with a twist.
3+
4+
##Usage
5+
Prefix an HTML tag you know with an **m** in your **.md** file and hit `TAB`. Examples -
6+
- `mh1` - for Heading 1
7+
- `mimg` - for an image
8+
- `ma` - for a link
9+
- `mtable` - for a table
10+
and so on...
11+
12+
Long tags like `blockquote` are shortened for power use.
13+
14+
##List of Tab Triggers
15+
16+
```
17+
mh1 // Heading 1
18+
mh2 // Heading 2
19+
mh3 // Heading 3
20+
mh4 // Heading 4
21+
mh5 // Heading 5
22+
mh6 // Heading 6
23+
```
24+
# Heading 1
25+
## Heading 2
26+
### Heading 3
27+
#### Heading 4
28+
##### Heading 5
29+
###### Heading 6
30+
```
31+
mb // Bold
32+
mi // Italic
33+
mbq // Blockquote
34+
mstrike // Strikeout
35+
mhr // Horizontal Rule, Divider
36+
```
37+
**Bold Text**
38+
39+
*Italic Text*
40+
41+
> Put a nice, beautiful
42+
> quote here...
43+
44+
~~Strike Through~~
45+
46+
---
47+
48+
```
49+
mcode // Inline Code
50+
mpre // Code Block with language based highlighting.
51+
```
52+
`Inline Code Snippet`
53+
54+
```javascript
55+
var message = "Code Block";
56+
alert( message );
57+
```
58+
```
59+
ma // Anchor
60+
mimg // Image
61+
```
62+
[Link Title](Link)
63+
![Github Logo](https://wasin.io/wp-content/uploads/2015/05/showimage.png)
64+
65+
```
66+
mol // Ordered List
67+
mul // Unordered List
68+
mtable // Table
69+
```
70+
1. First Item
71+
2. Second Item
72+
3. Third Item
73+
74+
- I
75+
- Love
76+
- Markdown
77+
78+
| Column 1 | Column 2 |
79+
| ------------- | ------------- |
80+
| Cell 1-1 | Cell 1-2 |
81+
| Cell 2-1 | Cell 2-2 |
82+
83+
84+
85+
86+
87+
88+
89+

ma.sublime-snippet

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<snippet>
2+
<content><![CDATA[
3+
[${1:Helpful Link}](${2:Link}) ${0}
4+
]]></content>
5+
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
6+
<tabTrigger>ma</tabTrigger>
7+
<!-- Optional: Set a scope to limit where the snippet will trigger -->
8+
<scope>text.html.markdown</scope>
9+
</snippet>

mb.sublime-snippet

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<snippet>
2+
<content><![CDATA[
3+
**${1:Bold Text}** ${0}
4+
]]></content>
5+
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
6+
<tabTrigger>mb</tabTrigger>
7+
<!-- Optional: Set a scope to limit where the snippet will trigger -->
8+
<scope>text.html.markdown</scope>
9+
</snippet>

mbq.sublime-snippet

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<snippet>
2+
<content><![CDATA[
3+
> ${1:Put a nice, beautiful}
4+
> ${2:quote here...}
5+
${0}
6+
]]></content>
7+
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
8+
<tabTrigger>mbq</tabTrigger>
9+
<!-- Optional: Set a scope to limit where the snippet will trigger -->
10+
<scope>text.html.markdown</scope>
11+
</snippet>

mcode.sublime-snippet

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<snippet>
2+
<content><![CDATA[
3+
`${1:Inline Code Snippet}` ${0}
4+
]]></content>
5+
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
6+
<tabTrigger>mcode</tabTrigger>
7+
<!-- Optional: Set a scope to limit where the snippet will trigger -->
8+
<scope>text.html.markdown</scope>
9+
</snippet>

mh1.sublime-snippet

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<snippet>
2+
<content><![CDATA[
3+
# ${1:Heading 1}
4+
${0}]]></content>
5+
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
6+
<tabTrigger>mh1</tabTrigger>
7+
<!-- Optional: Set a scope to limit where the snippet will trigger -->
8+
<scope>text.html.markdown</scope>
9+
</snippet>

mh2.sublime-snippet

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<snippet>
2+
<content><![CDATA[
3+
## ${1:Heading 2}
4+
${0}]]></content>
5+
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
6+
<tabTrigger>mh2</tabTrigger>
7+
<!-- Optional: Set a scope to limit where the snippet will trigger -->
8+
<scope>text.html.markdown</scope>
9+
</snippet>

mh3.sublime-snippet

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<snippet>
2+
<content><![CDATA[
3+
### ${1:Heading 3}
4+
${0}]]></content>
5+
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
6+
<tabTrigger>mh3</tabTrigger>
7+
<!-- Optional: Set a scope to limit where the snippet will trigger -->
8+
<scope>text.html.markdown</scope>
9+
</snippet>

mh4.sublime-snippet

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<snippet>
2+
<content><![CDATA[
3+
#### ${1:Heading 4}
4+
${0}]]></content>
5+
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
6+
<tabTrigger>mh4</tabTrigger>
7+
<!-- Optional: Set a scope to limit where the snippet will trigger -->
8+
<scope>text.html.markdown</scope>
9+
</snippet>

mh5.sublime-snippet

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<snippet>
2+
<content><![CDATA[
3+
##### ${1:Heading 5}
4+
${0}]]></content>
5+
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
6+
<tabTrigger>mh5</tabTrigger>
7+
<!-- Optional: Set a scope to limit where the snippet will trigger -->
8+
<scope>text.html.markdown</scope>
9+
</snippet>

0 commit comments

Comments
 (0)