Giter Site home page Giter Site logo

api-blueprint-sublime-plugin's Introduction

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.

api-blueprint-sublime-plugin's People

Contributors

bsutherland avatar danielgtaylor avatar klokane avatar neonichu avatar pksunkara avatar wmeldon avatar zdne avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.