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 11K
Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11
Windows 6 7 3 9 3 1 2 6 4 0 1 0 0 1 0 2 4 5 1 4 0 2 1 5 3 2 2 2 3 0 3 5 1 3 2 4 1 5 2 3 0 1 3 7 6 2
Mac 0 2 1 6 2 1 0 2 2 1 3 1 1 1 3 2 2 1 1 2 0 0 1 1 3 0 2 0 1 1 3 0 0 1 2 2 0 0 3 0 0 3 2 0 1 3
Linux 0 4 2 2 1 1 3 0 0 2 2 0 0 5 1 1 2 4 1 0 0 1 0 3 0 2 1 0 0 1 4 0 3 3 0 1 0 2 1 1 0 1 2 1 0 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/.