Markdown Extended
Top 100 Sublime Text plugin! Markdown syntax highlighter for Sublime Text, with extended support for GFM fenced code blocks, with language-specific syntax highlighting. YAML Front Matter. Works with ST2/ST3. Goes great with Assemble.
Details
Installs
- Total 339K
- Win 149K
- Mac 128K
- Linux 62K
| Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 27 | 8 | 9 | 18 | 23 | 17 | 21 | 17 | 15 | 10 | 27 | 22 | 21 | 10 | 12 | 2 | 13 | 19 | 16 | 13 | 18 | 10 | 8 | 7 | 9 | 15 | 16 | 19 | 16 | 12 | 15 | 22 | 16 | 16 | 13 | 21 | 15 | 10 | 15 | 14 | 21 | 16 | 18 | 7 | 16 | 11 |
| Mac | 18 | 7 | 2 | 11 | 11 | 14 | 19 | 10 | 15 | 6 | 17 | 14 | 24 | 11 | 15 | 6 | 10 | 21 | 13 | 18 | 14 | 12 | 7 | 5 | 7 | 14 | 13 | 20 | 16 | 9 | 3 | 15 | 16 | 17 | 19 | 17 | 6 | 6 | 17 | 21 | 16 | 15 | 20 | 10 | 7 | 9 |
| Linux | 7 | 3 | 4 | 9 | 4 | 8 | 9 | 11 | 4 | 2 | 6 | 10 | 13 | 3 | 9 | 3 | 2 | 7 | 10 | 5 | 9 | 5 | 4 | 1 | 6 | 4 | 8 | 6 | 6 | 6 | 6 | 8 | 4 | 12 | 6 | 7 | 8 | 6 | 2 | 5 | 7 | 5 | 3 | 2 | 4 | 6 |
Readme
- Source
- raw.githubusercontent.com
sublime-markdown-extended 
Extends Soda's Monokai and the default markdown styles with additional syntax highlighting for YAML Front Matter, GitHub Flavored Markdown (GFM) and language-specific syntax highlighting inside GFM “fenced” code blocks
Although substantial changes have been made, thank you @aziz and other contributors to Knockdown, for the code for the fenced code blocks.
Get Monokai Extended for better highlighting.
Jump to Examples ↓
Getting Started
1. Installation
Package Control
If you already have Package Control installed in Sublime Text:
- Select “Install Package” from the Command Palette: Ctrl+Shift+P on Windows and Linux or ⇧⌘P on OS X)
- Search for “Markdown Extended” and click enter.
Manual Installation
Go to Preferences -> Browse Packages, and then either download and unzip this plugin into that directory, or:
git clone https://github.com/jonschlinkert/sublime-markdown-extended.git "sublime-markdown-extended"
2. Activate this Language
After installing this package, open a markdown file and switch the language to Markdown Extended, using one
of the following methods:
- Select from the list of supported languages in your status bar at the bottom right corner of your editor
ctrl + shift + pand search for “Markdown Extended”
3. Make “Markdown Extended” the default
To make Markdown Extended the default highlighting for the current extension:
- Open a file with the extension you want to set a default for (i.e.
.md) - Navigate through the following menus in Sublime Text:
View -> Syntax -> Open all with current extension as... -> Markdown Extended
Features:
- Support for YAML Front Matter
- Support for GFM “fenced” code blocks
- Language-specific syntax highlighting support inside GFM “fenced” code blocks for most popular languages (see below for the list of supported languages)
- Syntax highlighting for URLs in text which is auto-linked by GFM
- Proper syntax highlighting for bullets and numbers in ordered/unordered lists
- Proper syntax highlighting for bold and italics by ignoring multiple underscores in words
Markdown Enhancements
The following examples use the Monokai Extended theme.
Whitespace
Significant whitespace
Whitespace is significant only directly before and directly after fenced code blocks! Following these instructions will ensure that highlighting works properly and consistently._
This is very simple:
- Add a newline before and after clode blocks
- No trailing spaces after the last code block
If you don't, it won't break your code but it won't always look awesome.
Comparisons with and without proper whitespace
Whitespace before the block
You will need to keep a space above and below fenced code blocks for predictable results with syntax highlighting. For example, this is what it looks like when there is no space before a fenced code block:

This is what it looks like with proper spacing:

Whitespace after the block
Also add a new line after code blocks, but make sure that there is no trailing whitespace next to the bottom fence.
With a trailing whitespace

Without a trailing whitespace

Supported languages
The following languages are highlighted inside fenced code blocks:
Note that in order for a language to be highlighted properly, you must have the language installed in Sublime Text.
coffee|coffeescriptcoffee front mattercppcsharpcsscc++diffejserlangunderscoregographqllodashhandlebars|hbs: requires the Sublime Text Handlebars packagehtml|html5inijadejavajavascript|jsjsonjson front matterjulialessls|livescript|LiveScriptluamd|markdownnginxobjective-cobjective-c++perlrrubysassscalascssshellbashsql|ddl|dmlpostgresql|postgres|pgsqlstylswiftswigliquidxmlyamlyaml front matter
CSS
Before

After

LESS
Before

After

HTML
Before

After

JavaScript
Before

After

Coffee
Before

After

LiveScript
Before

After

Shell
Before

After

YAML Front Matter
See gray-matter
Before

After

Coffee Front Matter
See gray-matter
Before

After

Authors
Jon Schlinkert
Alexander Krivoshhekov
Copyright and license
Copyright 2013-2015 Jon Schlinkert