mirror of
https://github.com/coder/coder.git
synced 2026-06-03 04:58:23 +00:00
101b62dc3e
followup to #16761 thanks @lucasmelin ! + thanks: @ethanndickson @Parkreiner @matifali @aqandrew - [x] update snippet - [x] find/replace - [x] spot-check [preview](https://coder.com/docs/@16761-gfm-callouts/admin/templates/managing-templates/schedule) (and others) --------- Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com> Co-authored-by: M Atif Ali <atif@coder.com>
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
{
|
|
// For info about snippets, visit https://code.visualstudio.com/docs/editor/userdefinedsnippets
|
|
// https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts
|
|
|
|
"alert": {
|
|
"prefix": "#alert",
|
|
"body": [
|
|
"> [!${1|CAUTION,IMPORTANT,NOTE,TIP,WARNING|}]",
|
|
"> ${TM_SELECTED_TEXT:${2:add info here}}\n"
|
|
],
|
|
"description": "callout admonition caution important 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"
|
|
},
|
|
"premium-feature": {
|
|
"prefix": "#premium-feature",
|
|
"body": [
|
|
"> [!NOTE]\n",
|
|
"> ${1:feature} ${2|is,are|} an Enterprise and Premium feature. [Learn more](https://coder.com/pricing#compare-plans).\n"
|
|
]
|
|
},
|
|
"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"
|
|
}
|
|
}
|