This bundle lets you to use the multi-platform editor Sublime Text as an IDE for the monkey programming language. It is based on monkey.tmbundle.
Created by Matt Sephton, http://www.gingerbeardman.com/monkey/
Forked, Updated by Aaron Nech, http://www.aaronnech.com
Syntax Highlighting
Easily see keywords, constants, strings, comments, numbers and functions/classes/methods in your code
Auto Completion of Keywords
Press the Tab key to expand to the first match after typing part of a keyword, Option+Escape will present a list of matches for you to choose from
Expand Keywords into Code
Press the Tab key to expand one keyword into one or more lines of code, subsequent presses of tab intelligently jump you through the resulting code allowing you to fill in multiple parameters with minimal key strokes
Build Systems
Quick and easy build by pressing ⌘B, current build system can be set in the Tools menu
Easy Source Navigation
Navigate around your source using the index of functions, classes and methods
...and more to come
Download/Install the Package Manager for sublime text instructions here: https://sublime.wbond.net/installation
Once it is installed, use Preferences->Package Manager in sublime, and use the command "Add Repository" It will require a URL. Simply use the url of this repository https://github.com/aaronnech/monkey.sublime WITHOUT the ".git".
Now enter the "Install Package" command and install monkey.sublime.
There are two paths in Mac OS X, the $PATH used by Terminal/shells and the Environment PATH as used by Windowed apps.
We'll add to both, just in case you need to use trans_macos from a shell as well as Sublime Text.
There is also the $PATH variable in most Linux systems that you will need to update.
This is how sublime will be able to find your Monkey executables and compile your application with the build tools. So you must add the Monkey executables to your $PATH variable. It essentially puts executables into the global scope of the terminal and allows sublime to execute them without knowing where they are stored on your computer.
In OSX, it is usually something along the lines of:
echo "export PATH=\$PATH:/user/folder/monkey/bin" >> ~/.profile
In Linux, you can edit your ~/.bashrc file and add the line:
export PATH=/path/to/monkey/bin:${PATH}
You may need to do the following as well(in OSX):
Assuming you have done the step above, in Terminal:
defaults write ${HOME}/.MacOSX/environment PATH "${PATH}"
Alternatively, you can manually edit ~/.MacOSX/environment.plist
or use the RCEnvironment preference pane.
Either way, the goal is to add your monkey/bin path to the PATH variable in your environment.
You will need to restart Mac OS X for the changes to take effect.
In Linux you may need need to type "source ~/.bashrc" to load in the changes; alternatively you can restart.
You can talk about the bundle on the official monkey forum
- Sublime Text 3 http://www.sublimetext.com/3
- monkey http://www.monkeycoder.co.nz
monkey.sublime is made available under a Creative Commons Attribution-Share Alike 3.0 Unported License.
2016-01-23
- Updated GLFW build target to use latest syntax and support GLFW2 and 3
2014-02-15
- Changed BUILD files adding cross platform support
- Updated instructions for easier installation using Sublime Package Manager
2012-05-04
- Added DrawPoint (v50)
- Included current TextMate language grammar
2011-10-08
- Added FirstNode, LastNode, NextNode, PrevNode, Exp (v45c)
- Added DisableKeyboard, EnableKeyboard (v45)
- Added ACosr, ASinr, ATan2r, ATanr, Cosr, Sinr, Tanr (v44)
- Added DrawPoly (v43)
- Added App: UpdateRate
- Added Audio: music commands (v35), Discard
- Added Graphics: DeviceHeight, DeviceWidth, Frames, HandleX, HandleY, Height, Width
- Added Lang: Print, Length, Resize, Compare, ToLower, ToUpper, Trim
- Added List: Backwards, Clear, Count, First, IsEmpty, Last, LastNode, ObjectEnumerator, RemoveFirst, RemoveLast, Value, ToArray
- Added Map: Set, Values, Key
- Added Random: Seed
- Added Set: Insert
- Added Stack: Insert, Pop, Push, Top
2011-08-11
- Added LANG const
2011-08-09
- Removed extraneous JOY constants
- Added missing JoyX/Y/Z keywords
- Added TARGET const
- Removed binary integer grammar which was resulting in incorrect display of numerical values
2011-08-08
- Updated language definition to the latest one from monkey.tmbundle, lots of changes:
- Added else/elseif snippet
- Reduced number of foldable elements
- Added keyEquivalent ^⌥⇧+M to activate bundle
- Renamed bundle from monkey to Monkey
- Removed preprocessor grammar
- Removed framework grammar
- Removed module grammar
- Added better if/then/elseif/else/endif handling
- Added bitwise complement operator
- Removed superstrict reference
- Tidied block comment grammar
- Replaced instances of (?:(?:^|;)\s*) with neater \b (regexp boundary)
- Removed references to integer number symbol %
- Corrected PI constants regexp
- Removed pointerops grammar
- Removed unused types from types grammar
2011-06-01
- Added one build system per target, should default to HTML5 but may need specifying manually
2011-05-31
- Updated language definition to the latest one from monkey.tmbundle (v40)
2011-05-19
- Updated language definition to the latest one from monkey.tmbundle (v39)
2011-04-20
- Added workaround for path issue
- Added installation notes
- Fixes for some broken snippets
- Added file_regex so errors can be located
2011-04-19
- Added multiple command line parameters, thanks to Adam Woodall
2011-04-18
- Added build system (path to trans needs to be hard coded - you will have to edit the Monkey.sublime-build file)
2011-04-08
- Initial release
- support for tab completions
- support for context sensitive help through a command