API Blueprint
API Blueprint Sublime Text plugin
Details
Installs
- Total 14K
- Win 4K
- Mac 8K
- Linux 2K
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 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Readme
- Source
- raw.githubusercontent.com
API Blueprint Sublime Text Plugin
This is the official API Blueprint plugin for Sublime Text with following features:
- Syntax highlighting for the
API Blueprint
format - Compiling blueprint into its AST media-type
- Live linting of blueprints as you type using
SublimeLinter3
This plug-in works both with Sublime Text 2 and 3. However linting is supported on Sublime Text 3 only.
Requirements
Drafter
In order for this plugin to work properly you need to have the API Blueprint command line tool drafter
installed.
To install Drafter
on OS X using run the following command:
$ brew install drafter
Refer to Drafter installation notes for details on installing on OS X & Linux or Windows.
SublimeLinter3 (optional)
This plugin offers linting of your blueprints using the SublimeLinter3 plugin framework. In order for linting to work please install SublimeLinter3
.
Markdown Highlighting (optional)
Note the API Blueprint Sublime Text syntax support relies on Markdown highlighing support in the color scheme used. For best results use a color scheme that supports Markdown-specific scopes (e.g. markdown: heading
) such as Monokai extended, and install Sublime Markdown Extended.
Installation
Using Package Control
With Package Control:
- Run “Package Control: Install Package” command, find and install
API Blueprint
plugin. - Restart SublimeText editor (if required)
From the Source
With Drafter
installed run the following command in your Sublime Text 3 packages directory:
$ git clone https://github.com/apiaryio/api-blueprint-sublime-plugin.git "API Blueprint"
Depending on your OS (and Sublime Text version) the packages directories are:
+ Linux: ~/.config/sublime-text-3/packages
+ OS X: ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
+ Windows: %APPDATA%\Sublime Text 3\Packages
Using the Plugin
Commands
You can access the commands either using the command palette (CTRL+SHIFT+P
or CMD+SHIFT+P
) or via shortcuts.
Shortcuts
ALT+SHIFT+B
: Parse the active file and open result AST including any possible parser messages in a new tab.
Acknowledgements
- This plugin uses parts of CoffeeScript Sublime Plugin.
- Thanks to @WMeldon for his contribution.
License
MIT License. See the LICENSE file.