Poly/ML Package for Sublime Text 2
Python Vim script Perl Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
poly
.gitignore
Comments (Standard ML).tmPreferences
PolyML Output.tmLanguage
PolyML.sublime-build
PolyML.sublime-commands
README.md
Rakefile
Standard ML.tmLanguage
poly_accessors.py
poly_console_here.py
poly_get_info.py
polyio.py
run_poly.py
sml_polyml.vim

README.md

Poly/ML Package for Sublime Text 2

This package adds syntax highlighting and build system support for Poly/ML source files. It works best when used in conjunction with the [isaplib][isaplib] Poly/ML library, which adds support for incremental building of source files via PolyML.Project.

Installing

The package can be installed by running the following commands:

cd $PACKAGE_DIR
git clone git://github.com/akissinger/sublime-polyml.git PolyML

Done! On OS X, PACKAGE_DIR is ~/Library/Application Support/Sublime Text 2/Packages/. PolyML should show up as an option under Build Systems, and .ML files should highlight correctly.

The package provides the command 'run_poly', which can be bound to a hotkey, called from another plugin, etc.

Configuration

At some point, I'll add some smarts so that the package can find Poly/ML on most systems. In the mean time, add the following line to your Preferences.sublime-settings:

"poly_bin": "/usr/local/bin/poly"

Where "/usr/local/bin/poly" is pointing to where your poly executable is installed. For launching Poly/ML consoles, you can set your terminal of choice using the terminal setting in Preferences. E.g.

"terminal": "konsole"