Introduction

This page contains information about a plugin developed for GeSHi to support Prolog syntax highlighting.

This simple idea came to mind of Grzegorz J. Nalepa and Igor Wojnicki who were also the first testers.

The implementation was carried out in 2007 by a student Paweł Kupka.

Grzegorz J. Nalepa gjn@agh.edu.pl supervised the implementation.

Copyright: © 2007 Pawel Kupka

Copyright: © 2004 Nigel McNie (http://qbnz.com/highlighter/)

Installation

  • download the file geshi_prolog-1.0.zip
  • unpack
  • copy the file prolog.php to the directory $WIKI/inc/geshi/
  • have fun!
  • report bugs :-)

Use

<code prolog>
parent(pam,bob).

female(pam).
</code>
/*
 * family.pl
 * taken from Bratko, 3rd ed, ch.1, p.17
 *
 */
 
parent(pam,bob).
parent(tom,bob).
parent(tom,liz).
 
female(pam).
female(liz).
female(pat).
 
male(tom).
male(bob).
male(jim).
 
mother(X,Y) :-
	parent(X,Y),
	female(X).
 
father(X,Y) :-
	parent(X,Y),
	male(X).

For more examples see the Prolog lab (in polish :-) )

Future work

The plugin has been submitted to GeSHi on 29/02/2008.

The plugin is being extended to support Logtalk, see the forum post.

pl/prolog/geshi_prolog.txt · ostatnio zmienione: 2017/07/17 08:08 (edycja zewnętrzna)
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0