Syntax highlighting for the MiniZinc modelling language
- Total 333
- Win 112
- Mac 111
- Linux 110
|Mar 29||Mar 28||Mar 27||Mar 26||Mar 25||Mar 24||Mar 23||Mar 22||Mar 21||Mar 20||Mar 19||Mar 18||Mar 17||Mar 16||Mar 15||Mar 14||Mar 13||Mar 12||Mar 11||Mar 10||Mar 9||Mar 8||Mar 7||Mar 6||Mar 5||Mar 4||Mar 3||Mar 2||Mar 1||Feb 29||Feb 28||Feb 27||Feb 26||Feb 25||Feb 24||Feb 23||Feb 22||Feb 21||Feb 20||Feb 19||Feb 18||Feb 17||Feb 16||Feb 15||Feb 14|
MiniZinc package for Sublime Text
Syntax highlighting for the MiniZinc modelling language (.mzn and .dzn files). Here's what it looks like:
Copy the MZN.* files into the Sublime Text “Packages” direcory. This can be done either by cloning this repository, or by downloading the zip file. The packages location can be found via
Browse Packages..., or as follows:
- OS X:
~/Library/Application Support/Sublime Text 3/Packages/
~/.Sublime Text 3/Packages/
%APPDATA%/Sublime Text 3/Packages/
Alternatively, navigate to the “Packages” directory and clone the git repository.
MiniZinc is a medium-level constraint modelling language. It is high-level enough to express most constraint problems easily, but low-level enough that it can be mapped onto existing solvers easily and consistently. It is a subset of the higher-level language Zinc.
MiniZinc is available from http://www.minizinc.org/
This package adds syntax highlighting for all built-in functions and global constraints, as well as strings, numeric values, constants and keywords.
Comments are also highlighted. In MiniZinc, line comments are started by
%, and block comments are enclosed in
A very simple build system is also included. To solve a model,
Cmd-B on OS X) invokes the
minizinc program on the current model file. However, do note that external data files cannot currently be specified in this build system. It also requires that
minizinc is visible to Sublime Text, which may not be the case in the default installation depending on your system. Finally, the build system also does not allow changing any command line parameters or changing solvers. But for very simple models it works.
Copyright © 2015-2016 Andreas Stenmark
This is free software. It is licensed under the MIT License. Feel free to use this in your own work. However, if you modify and/or redistribute it, please attribute me in some way, and it would be great if you distribute your work under this or a similar license, but it's not required.