Prolog
This a Prolog syntax highlighting for Sublime Text 2 & 3
Details
Installs
- Total 45K
- Win 20K
- Mac 13K
- Linux 12K
Jun 8 | Jun 7 | Jun 6 | Jun 5 | Jun 4 | Jun 3 | Jun 2 | Jun 1 | May 31 | May 30 | May 29 | May 28 | May 27 | May 26 | May 25 | May 24 | May 23 | May 22 | May 21 | May 20 | May 19 | May 18 | May 17 | May 16 | May 15 | May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | Apr 26 | Apr 25 | Apr 24 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 2 | 1 | 2 | 1 | 0 | 1 | 1 | 1 | 0 | 3 | 1 | 0 | 1 | 0 | 2 | 1 | 1 | 1 | 1 | 1 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 6 | 0 | 0 | 0 | 3 | 0 | 0 | 2 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 1 |
Mac | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 1 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 | 1 | 1 | 0 | 0 | 2 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 2 | 2 | 1 | 0 | 0 | 1 | 0 | 1 | 0 |
Linux | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 | 0 | 2 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 |
Readme
- Source
- raw.githubusercontent.com
Prolog syntax highlighting for Sublime Text 2 & 3
This package provides syntax highlighting and automated build for the logic programming language Prolog. It is highly work in progress, so use with care.
Auto Build System
To be able to use the Ctrl+B automatic build, you need to define main/0
where you compute the solution and you also print it. For example:
main :- compute(input, Solution), writef('%t\n', [Solution]).
An indicator that this is not done (correctly) is the following error:
ERROR: call/2: Undefined procedure: main/1
ERROR: However, there are definitions for:
ERROR: main/0
Installation
Installation via Sublime Package Control
I recommend using the Sublime Package Control to install this package. This way is much more convenient. It is named Prolog.
Manual installation
If you want to manually install this package, please do:
cd /tmp
wget -O sublimeprolog.tar.gz http://github.com/alnkpa/sublimeprolog/tarball/master
tar -xzvf sublimeprolog.tar.gz
cd alnkpa-sublimeprolog-<commit>
mv Prolog.tmLanguage ~/.config/sublime-text-2/Packages/User/
License
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.