mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
adds snippets to make some of the docs markdown components a little easier to use - wraps selected text where it seems appropriate - limits code block languages (these are suggestions, you can choose from the list or enter anything) tabs example:  --------- Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com>
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
{
|
|
// For info about snippets, visit https://code.visualstudio.com/docs/editor/userdefinedsnippets
|
|
|
|
"admonition": {
|
|
"prefix": "#callout",
|
|
"body": [
|
|
"<blockquote class=\"admonition ${1|caution,important,note,tip,warning|}\">\n",
|
|
"${TM_SELECTED_TEXT:${2:add info here}}\n",
|
|
"</blockquote>\n"
|
|
],
|
|
"description": "callout admonition caution info note tip warning"
|
|
},
|
|
"fenced code block": {
|
|
"prefix": "#codeblock",
|
|
"body": ["```${1|apache,bash,console,diff,Dockerfile,env,go,hcl,ini,json,lisp,md,powershell,shell,sql,text,tf,tsx,yaml|}", "${TM_SELECTED_TEXT}$0", "```"],
|
|
"description": "fenced code block"
|
|
},
|
|
"image": {
|
|
"prefix": "#image",
|
|
"body": "$0",
|
|
"description": "image"
|
|
},
|
|
"tabs": {
|
|
"prefix": "#tabs",
|
|
"body": [
|
|
"<div class=\"tabs\">\n",
|
|
"${1:optional description}\n",
|
|
"## ${2:tab title}\n",
|
|
"${TM_SELECTED_TEXT:${3:first tab content}}\n",
|
|
"## ${4:tab title}\n",
|
|
"${5:second tab content}\n",
|
|
"## ${6:tab title}\n",
|
|
"${7:third tab content}\n",
|
|
"</div>\n"
|
|
],
|
|
"description": "tabs"
|
|
}
|
|
}
|