Git Product home page Git Product logo

minizinc-sublimetext's Introduction

MiniZinc Sublime text

MiniZinc syntax package for Sublime Text 3.

Installation:

  1. Download this Repo
  2. Move the folder MiniZinc to the Sublime Text Package directory.
    • The directory can be found by following Sublime Text -> Preferences -> Browse Packages... -> User
    • It generates a path like ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/MiniZinc/

For developer:

  • Please feel free to improve the src/MiniZinc.yaml. In Sublime Text, by pressing fn + F7, you can generate new *.tmLanguage files.
  • The MiniZinc.sublime-completions contains keywords used for auto-complete.
  • To create a new language syntax from scratch, you need to enable the function Tools > Packages > Package Developments > New Syntax Definition. This can be accomplished by installing first the Package Control then the AAAPackageDev.

Note that:

  • This package contains all the keywords listed in the MiniZinc Tutorial which is not complete; we are improving it all the time.
  • Currently this package is tested with Sublime Text 2 and Sublime Text 3 on MAC OSX.

Example

alt text

Authors

  • Tong Liu (t.liu at cs.unibo.it)

License ©️

Copyright © 2015-2019 Tong Liu

The configuration files are free of use: you can redistribute it and/or modify it under the terms of the GNU General Public License. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

REF:

minizinc-sublimetext's People

Contributors

lteu avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar Yuxiang Li avatar

minizinc-sublimetext's Issues

elseif keyword not coloured

Thank you for this language definition, it has been very helpful in learning MiniZinc!

One note:
The "elseif" keyword isn't coloured and appears to be missing in the tmLanguage files. It isn't included in the test model which may need updating too.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.