Configure and run mx2cc from within Atom. Easily set build options, assign a default target, and get build output.
Highlighting for core language keywords.
Provides basic autocompletion via the autocomplete-plus package.
The compiler options can all be set via the toolbar. The selected options will be used when building any file in the current project.
If you have chosen a default target (see below), clicking the green arrow button will build it. Otherwise, it will try to build whatever file is currently active in the editor.
Right click on any monkey2 file in your project tree. Choose Monkey from the context menu. You can Set Default Target, which will designate the chosen file as the one to pass to the compiler by default. You can also choose Clear Default Target, which will clear any target you have previously selected as the default and Build Selected, which will immediately compile the selected file.
By default this package uses the following keyboard shortcuts. I've used SHIFT as a prefix to hopefully avoid conflicts with other common packages, but feel free to re-map them to suit your needs.
It includes syntax highlighting for the basic language keywords. Currently there is no highlighting for module keywords (ie. mojo stuff).
Autocompletion depends the autocomplete-plus package, which should be installed by default in Atom. If not, you can install it via the package manager.
Once you have entered a path to your monkey installation (see Installation above), the package will automatically parse your modules folder, as well as your local project tree for monkey2 files. It will then try to provide autocompletion suggestions based on what it finds.
Currently it will ignore anything within a Private or Extern block. It also cannot parse the type of
variables assigned in the shorthand format
Local var:= Image.Load(..., so to get autocompletion on
your variables, define their type explicitly, eg.
Local var:Image = Image.Load(...
Below are planned (but not promised!) additions to the package. I'll do my best to get these implemented at some point.
Please report any bugs or suggestions as github issues or in this thread on the monkey2 forums
Pull requests and other contributions are welcome.
This package was originally forked from @frameland's Monkey-x package. If you are coding with Monkey-X, that package is the one you want. For more info, visit the official forums: (http://www.monkey-x.com/Community/posts.php?topic=10505)
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.