- Install Sublime Text 2
- Install Sublime package sublime-jsdocs
- Copy bin/InDesign 5.5 JavaScript.sublime-build to ~/Library/Application Support/Sublime Text 2/Packages/User
- In Sublime go to Project -> Open Project... and select basil.sublime-project
- In Sublime go to Tools -> Build Systems and select InDesign 5.5 JavaScript
Now you are able to execute InDesign Scripts from within Sublime with Tools -> Build.
basil.js uses "Code Conventions for the JavaScript Programming Language" by Douglas Crockford with these modifications:
- The unit of indentation is two spaces
basil.js uses YUIDoc to document public API functionality. Installation and usage:
- Download and install Node.js
- Open up a terminal window and run "npm -g install yuidocjs"
- To generate the documetation in doc/api open up a terminal window and simply run "yuidoc ." in the basil.js project directory