1
0

Updates the screenshot of the readme

This commit is contained in:
Jip J. Dekker 2016-01-18 22:28:52 +01:00
parent 2bd4158e1d
commit 25f263ba05
4 changed files with 22 additions and 1 deletions

View File

@ -2,7 +2,7 @@
This package adds syntax highlighting and optional linting for the MiniZinc modeling language (.mzn and .dzn files). The package is based on the [similar package for Sublime](https://github.com/astenmark/sublime-mzn). This package adds syntax highlighting and optional linting for the MiniZinc modeling language (.mzn and .dzn files). The package is based on the [similar package for Sublime](https://github.com/astenmark/sublime-mzn).
![A small preview](https://raw.githubusercontent.com/jjdekker/language-mzn/master/screen.png) ![A small preview](https://raw.githubusercontent.com/jjdekker/language-mzn/master/sample.png)
## About MiniZinc ## About MiniZinc

21
sample.mzn Normal file
View File

@ -0,0 +1,21 @@
% Model of the queens problem
include "globals.mzn";
% parameters
int: n=;
% variables
array[1..n] of var 1..n: R;
% constraints
constraint all_different(R);
constraint all_different([R[i] + i | i in 1..n]);
constraint all_different([R[i] + i | i in 1..n]);
% objective
solve satisfy;
% output
output [show(R)];

BIN
sample.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB