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

Prolog

by alnkpa ST2/ST3

This a Prolog syntax highlighting for Sublime Text 2 & 3

Details

Installs

  • Total 32K
  • Win 14K
  • OS X 10K
  • Linux 9K
Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 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
Windows 2 5 9 14 6 4 3 8 8 14 6 7 5 8 5 6 16 12 15 7 7 12 12 12 7 5 12 3 10 15 13 16 11 3 8 2 18 13 19 15 12 10 12 17 10 20
OS X 2 3 4 4 3 4 1 2 4 3 6 8 4 4 2 2 5 9 4 5 6 4 8 5 3 7 2 4 2 14 9 5 1 10 10 9 8 8 17 17 9 9 13 7 6 7
Linux 2 6 5 1 4 0 2 2 13 7 3 4 3 4 5 2 7 5 9 8 5 8 5 8 4 6 1 2 7 7 3 7 7 3 8 7 14 11 9 8 6 4 8 12 13 13

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