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 27K
  • Win 11K
  • OS X 8K
  • Linux 8K
Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5
Windows 5 9 6 6 11 11 10 16 7 7 3 3 9 4 14 5 7 7 4 8 4 1 6 6 2 3 4 2 3 4 3 2 4 1 2 3 4 4 2 1 5 3 6 3 4 5
OS X 5 7 2 2 10 5 4 5 2 1 2 2 6 3 4 6 3 1 2 0 2 2 4 2 2 0 1 1 3 5 0 1 1 0 4 1 1 3 1 3 0 2 3 2 1 0
Linux 2 9 2 3 6 5 6 4 7 4 3 3 5 9 5 2 5 3 3 6 4 3 0 1 5 2 5 7 5 3 2 4 4 3 2 0 4 1 3 3 5 1 7 3 6 0

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 syntax highlighting there, as well.

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