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

API Blueprint

by apiaryio ST2/ST3

API Blueprint Sublime Text plugin

Details

  • 2016.02.16.17.45.43
  • github.​com
  • github.​com
  • 1 year ago
  • 1 hour ago
  • 2 years ago

Installs

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

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 --HEAD \
  https://raw.github.com/apiaryio/drafter/master/tools/homebrew/drafter.rb

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:

  1. Run “Package Control: Install Package” command, find and install API Blueprint plugin.
  2. 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

License

MIT License. See the LICENSE file.