Skip to content

Instantly share code, notes, and snippets.

@iamvee
Last active February 14, 2020 00:27
Show Gist options
  • Save iamvee/5ae493c02a8bbb7e7d15cdab6015e9ba to your computer and use it in GitHub Desktop.
Save iamvee/5ae493c02a8bbb7e7d15cdab6015e9ba to your computer and use it in GitHub Desktop.
markdown details click snippet: snippet generator for visual studio code
[
{
"key": "ctrl+. alt+.",
"command": "editor.action.insertSnippet",
"args": { "name": "markdown_collapse_details_code" }
}
]
{
"markdown_collapse_details_code": {
"prefix": "md-details",
"body": [
"## $1",
"<details><summary>click for details of <strong>$1</strong> </summary>",
"<p>", "$2", "", "```awk", "#!/usr/bin/awk -f", "$3", "```", "</p>", "</details>", "", "$0"
],
"description": "Log output to console"
}
}

awk comments (w/o details click)

comments inside awk script

#/usr/bin/awk -f
BEGIN { print "hey dude" } # It's OK

awk comments

click for details of awk comments

comments inside awk script

#/usr/bin/awk -f
BEGIN { print "hey dude" } # It's OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment