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 42K
  • Win 18K
  • Mac 12K
  • Linux 12K
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 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1
Windows 0 3 1 3 7 6 5 3 3 8 3 3 6 5 2 4 6 5 2 7 6 2 4 2 3 2 11 10 3 4 2 2 1 5 6 2 6 5 2 7 6 4 2 2 0 8
Mac 0 0 0 3 1 4 4 1 0 0 1 2 2 0 1 1 1 1 4 2 3 2 0 0 3 0 1 1 0 1 2 2 2 3 3 0 2 2 2 5 2 1 1 0 1 3
Linux 0 4 2 2 3 4 1 1 2 4 1 4 0 5 1 0 2 3 4 3 4 2 1 1 4 3 1 1 0 3 3 3 4 3 4 2 0 2 3 1 3 4 0 2 1 1

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