ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Prolog

by alnkpa ALL

This a Prolog syntax highlighting for Sublime Text 2 & 3

Details

Installs

  • Total 39K
  • Win 17K
  • Mac 11K
  • Linux 11K
Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 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
Windows 3 5 10 3 3 4 2 2 7 6 2 3 5 3 8 6 2 4 6 5 4 2 4 6 8 5 3 2 1 4 9 8 10 5 4 1 8 4 9 8 5 5 2 6 5 3
Mac 1 4 2 2 5 5 1 2 3 2 2 1 1 3 4 2 0 2 1 1 2 3 4 5 2 1 3 1 2 2 5 6 4 2 3 4 5 5 3 2 3 3 1 1 3 5
Linux 0 7 4 3 3 6 3 0 7 6 3 4 3 0 2 1 2 2 3 2 3 2 1 3 2 4 3 0 2 6 2 17 9 7 1 1 3 1 3 2 10 2 2 10 2 4

Readme

Source
raw.​githubusercontent.​com

Prolog syntax highlighting for Sublime Text 2 & 3

No Maintenance Intended

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/.