ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Markdown​Code​Block​Wrapper

by kenspirit ST2/ST3

Github Flavored Markdown Code Block Wrapper

Details

Installs

  • Total 9K
  • Win 5K
  • OS X 3K
  • Linux 1K
Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22
Windows 0 3 1 0 2 2 1 4 3 0 3 1 0 1 0 0 2 2 0 0 0 1 1 3 1 1 0 1 0 0 1 2 3 0 1 2 0 1 1 0 0 1 0 0 1 1
OS X 0 0 0 2 0 0 1 0 3 0 1 0 0 0 1 0 0 0 0 0 0 1 3 0 1 0 0 0 1 0 1 0 0 0 0 1 0 0 0 1 0 0 1 2 1 0
Linux 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 2 1 0 0 1 0 0 1 0 0 1 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

MarkdownCodeBlockWrapper

A simple helper for wrapping Github Flavored Markdown Code Block.

Using GFM code block, fenced code block, it's required to keep typing the little backtick () six times to wrap the code. And also an optional language identifier for syntax highlighting.

It would be nice if you just need to select the code block, press command shortcut, type the optional syntax highlighting language and done. This helper wraps for you to save the typing on backtick.

Notes: If you use Command Palette instead of directly using hot-key ctrl+alt+c to call up the command, you need to type in mdcode instead of full name Markdown. Thanks @sambody for reminder.

Added a code snippets mdc so that it's even easier to generate a new code block although ctrl+alt+c can enclose existing code with fenced code block.