This is the official API Blueprint plugin for Sublime Text with following features:
API Blueprint
formatSublimeLinter3
This plug-in works both with Sublime Text 2 and 3. However linting is supported on Sublime Text 3 only.
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.
This plugin offers linting of your blueprints using the SublimeLinter3 plugin framework. In order for linting to work please install SublimeLinter3
.
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.
With Package Control:
API Blueprint
plugin.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:
~/.config/sublime-text-3/packages
~/Library/Application\ Support/Sublime\ Text\ 3/Packages
%APPDATA%\Sublime Text 3\Packages
You can access the commands either using the command palette (CTRL+SHIFT+P
or CMD+SHIFT+P
) or via shortcuts.
ALT+SHIFT+B
: Parse the active file and open result AST including any possible parser messages in a new tab.MIT License. See the LICENSE file.