Skip to content

Commit

Permalink
feat: add snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Jul 5, 2021
1 parent 916dc39 commit 150cea1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
]
}
],
"snippets": [
{
"language": "markdown",
"path": "./snippets/markdown.code-snippets"
}
],
"commands": [
{
"command": "docus-syntax-highlight.helloWorld",
Expand Down
17 changes: 17 additions & 0 deletions snippets/markdown.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"Insert span text": {
"prefix": "span",
"body": "[${1:${TM_SELECTED_TEXT}}]$0",
"description": "Insert span text"
},
"Insert Simple Block": {
"prefix": ["block", "::"],
"body": ["::$1", "${0:${TM_SELECTED_TEXT}}", "::"],
"description": "Insert Simple Block"
},
"Insert Data Block": {
"prefix": ["block", "::-"],
"body": ["::$1", "---", "$2","---","${0:${TM_SELECTED_TEXT}}","::"],
"description": "Insert Data Block"
}
}

0 comments on commit 150cea1

Please sign in to comment.