├── .gitignore
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 | *.DS_Store
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ✂️ Save time with some snippets!
2 |
3 | Here are some useful snippets for writing posts for Alligator.io. Each snippet has a version for Atom, VS Code and Sublime Text. Sorry VI users 😆!
4 |
5 | Thanks to [this snippet generator](https://github.com/pawelgrzybek/snippet-generator) for making it easy!
6 |
7 | ## Table of contents
8 |
9 | * [Jekyll front matter](#jekyll-front-matter)
10 | * [Atom](#atom)
11 | * [VS Code](#vs-code)
12 | * [Sublime Text](#sublime-text)
13 | * [Bullet points](#bullet-points)
14 | * [Atom](#atom-1)
15 | * [VS Code](#vs-code-1)
16 | * [Sublime Text](#sublime-text-1)
17 | * [Code snippets](#code-snippets)
18 | * [Atom](#atom-2)
19 | * [VS Code](#vs-code-2)
20 | * [Sublime Text](#sublime-text-2)
21 | * [Raw](#raw)
22 | * [Atom](#atom-3)
23 | * [VS Code](#vs-code-3)
24 | * [Sublime Text](#sublime-text-3)
25 | * [Single-line Code Annotation](#single-line-code-annotation)
26 | * [Atom](#atom-4)
27 | * [VS Code](#vs-code-4)
28 | * [Sublime Text](#sublime-text-4)
29 | * [Block Code Annotation](#block-code-annotation)
30 | * [Atom](#atom-5)
31 | * [VS Code](#vs-code-5)
32 | * [Sublime Text](#sublime-text-5)
33 | * [Info Box](#info-box)
34 | * [Atom](#atom-6)
35 | * [VS Code](#vs-code-6)
36 | * [Sublime Text](#sublime-text-6)
37 | * [Warning Box](#warning-box)
38 | * [Atom](#atom-7)
39 | * [VS Code](#vs-code-7)
40 | * [Sublime Text](#sublime-text-7)
41 | * [Success Box](#success-box)
42 | * [Atom](#atom-8)
43 | * [VS Code](#vs-code-8)
44 | * [Sublime Text](#sublime-text-8)
45 | * [File Description](#file-description)
46 | * [Atom](#atom-9)
47 | * [VS Code](#vs-code-9)
48 | * [Sublime Text](#sublime-text-9)
49 | * [Post Image](#post-image)
50 | * [Atom](#atom-10)
51 | * [VS Code](#vs-code-10)
52 | * [Sublime Text](#sublime-text-10)
53 | * [Lazy Post Image](#lazy-post-image)
54 | * [Atom](#atom-11)
55 | * [VS Code](#vs-code-11)
56 | * [Sublime Text](#sublime-text-11)
57 | * [Collapsible](#collapsible)
58 | * [Atom](#atom-12)
59 | * [VS Code](#vs-code-12)
60 | * [Sublime Text](#sublime-text-12)
61 | * [Parting Thoughts](#parting-thoughts)
62 | * [Atom](#atom-13)
63 | * [VS Code](#vs-code-13)
64 | * [Sublime Text](#sublime-text-13)
65 |
66 | ## Jekyll front matter
67 |
68 | ### Atom
69 |
70 | ```
71 | 'Jekyll front matter':
72 | 'prefix': 'frontmatter'
73 | 'body': """
74 | ---
75 | layout: page-fullwidth
76 | title: "${1:Using JavaScript to Make Crispy Bacon}"
77 | categories:
78 | - ${2:JS}
79 | tags:
80 | - ${3:bacon}
81 | header: no
82 | breadcrumb: true
83 | meta_description: "${4:Description in the range of 80 to 155 characters.}"
84 | author: ${5:john_d}
85 | ---
86 | """
87 | ```
88 |
89 | ### VS Code
90 |
91 | ```
92 | "Jekyll front matter": {
93 | "prefix": "frontmatter",
94 | "body": [
95 | "---",
96 | "layout: page-fullwidth",
97 | "title: \"${1:Using JavaScript to Make Crispy Bacon}\"",
98 | "categories:",
99 | " - ${2:JS}",
100 | "tags:",
101 | " - ${3:bacon}",
102 | "header: no",
103 | "breadcrumb: true",
104 | "meta_description: \"${4:Description in the range of 80 to 155 characters.}\"",
105 | "author: ${5:john_d}",
106 | "---"
107 | ],
108 | "description": "Jekyll front matter"
109 | }
110 | ```
111 |
112 | ### Sublime Text
113 |
114 | ```
115 |
${2:your code here}
184 | """
185 | ```
186 |
187 | ### VS Code
188 |
189 | ```
190 | "Code snippet": {
191 | "prefix": "snippet",
192 | "body": [
193 | "${2:your code here}"
194 | ],
195 | "description": "Code snippet"
196 | }
197 | ```
198 |
199 | ### Sublime Text
200 |
201 | ```
202 | ${2:your code here}
205 | ]]>338 | ${1:content here} 339 |
340 | """ 341 | ``` 342 | 343 | ### VS Code 344 | 345 | ``` 346 | "Info box": { 347 | "prefix": "info-box", 348 | "body": [ 349 | "", 350 | " ${1:content here}", 351 | "
" 352 | ], 353 | "description": "Info box" 354 | } 355 | ``` 356 | 357 | ### Sublime Text 358 | 359 | ``` 360 |382 | ${1:content here} 383 |
384 | """ 385 | ``` 386 | 387 | ### VS Code 388 | 389 | ``` 390 | "Warning box": { 391 | "prefix": "warning-box", 392 | "body": [ 393 | "", 394 | " ${1:content here}", 395 | "
" 396 | ], 397 | "description": "Warning box" 398 | } 399 | ``` 400 | 401 | ### Sublime Text 402 | 403 | ``` 404 |426 | ${1:content here} 427 |
428 | """ 429 | ``` 430 | 431 | ### VS Code 432 | 433 | ``` 434 | "Success box": { 435 | "prefix": "success-box", 436 | "body": [ 437 | "", 438 | " ${1:content here}", 439 | "
" 440 | ], 441 | "description": "Success box" 442 | } 443 | ``` 444 | 445 | ### Sublime Text 446 | 447 | ``` 448 |${1:file-name.js}
470 | """ 471 | ``` 472 | 473 | ### VS Code 474 | 475 | ``` 476 | "File description": { 477 | "prefix": "file-description", 478 | "body": [ 479 | "${1:file-name.js}
" 480 | ], 481 | "description": "File description" 482 | } 483 | ``` 484 | 485 | ### Sublime Text 486 | 487 | ``` 488 |
508 |
509 |
",
520 | " ",
521 | "
552 |
553 |
",
564 | " ",
565 | "
${2:content here}
597 |${2:content here}
", 609 | "${2:content here}
622 | 623 | ]]>640 | ${1:your text here} 641 |
642 | """ 643 | ``` 644 | 645 | ### VS Code 646 | 647 | ``` 648 | "Parting thoughts": { 649 | "prefix": "parting-thoughts", 650 | "body": [ 651 | "", 652 | " ${1:your text here}", 653 | "
" 654 | ], 655 | "description": "Parting thoughts" 656 | } 657 | ``` 658 | 659 | ### Sublime Text 660 | 661 | ``` 662 |