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

API Blueprint

by apiaryio ST2/ST3

API Blueprint Sublime Text plugin

Details

  • 2017.05.29.14.55.47
  • github.​com
  • github.​com
  • 3 months ago
  • 1 hour ago
  • 3 years ago

Installs

  • Total 9K
  • Win 2K
  • OS X 5K
  • Linux 1K
Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4
Windows 0 1 7 1 3 0 1 5 4 2 2 7 1 2 5 1 4 1 1 1 0 3 2 3 0 1 2 2 3 3 3 2 3 1 0 2 5 5 3 2 0 1 1 2 4 5
OS X 2 6 4 6 8 1 1 6 8 6 3 9 3 1 4 3 9 8 3 0 3 7 11 2 11 7 3 3 6 11 9 10 11 3 0 5 6 4 3 5 2 4 4 5 4 7
Linux 1 1 1 1 2 0 0 2 3 4 0 0 0 1 0 3 2 2 1 1 0 4 1 1 3 0 0 1 2 6 1 2 1 0 0 1 4 0 0 2 1 2 2 3 1 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 --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.