Skip to content

Instantly share code, notes, and snippets.

@juanmanuelarias
Last active August 11, 2021 05:08
Show Gist options
  • Save juanmanuelarias/8547349 to your computer and use it in GitHub Desktop.
Save juanmanuelarias/8547349 to your computer and use it in GitHub Desktop.
Code snippets for Sublime Text to create a markdown shortcuts.To use it just add the ".sublime-snippet" files inside "Packages/User" or a subfolder "Packages/User/md"
<snippet>
<content><![CDATA[
__$1__$2
]]></content>
<tabTrigger>__</tabTrigger>
<scope>text.html.markdown</scope>
</snippet>
<snippet>
<content><![CDATA[
```${1:js}
$2
```
$3
]]></content>
<!-- Type "-cb" + tab in a .md file to insert a code block -->
<tabTrigger>-cb</tabTrigger>
<scope>text.html.markdown</scope>
</snippet>
<snippet>
<content><![CDATA[
`$1`
]]></content>
<!-- Type "-c" + tab in a .md file to insert a code line -->
<tabTrigger>-c</tabTrigger>
<scope>text.html.markdown</scope>
</snippet>
<snippet>
<content><![CDATA[
![$1]($2)$3
]]></content>
<!-- Type "-i" + tab key in a .md file to insert an image shortcut -->
<tabTrigger>-i</tabTrigger>
<scope>text.html.markdown</scope>
</snippet>
<snippet>
<content><![CDATA[
_$1_$2
]]></content>
<!-- Type "-t" + tab key in a .md file to insert a table -->
<tabTrigger>_</tabTrigger>
<scope>text.html.markdown</scope>
</snippet>
<snippet>
<content><![CDATA[
(**sl.$1**)$2
]]></content>
<!-- My custom snippet to takes notes from slides -->
<tabTrigger>-sl</tabTrigger>
<scope>text.html.markdown</scope>
</snippet>
<snippet>
<content><![CDATA[
| |
--- | --- | ---
| |
]]></content>
<!-- Type "-t" + tab key in a .md file to insert a table -->
<tabTrigger>-t</tabTrigger>
<scope>text.html.markdown</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment