42aabce1bb
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1973 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
================================================================
|
|
Logtalk - Open source object-oriented logic programming language
|
|
Release 2.30.7
|
|
|
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
|
================================================================
|
|
|
|
|
|
This directory contains files that provide support for using version 2.0
|
|
or later of the source-highlight package by Lorenzo Bettini with Logtalk
|
|
source files. A detailed description on the source-highlight package is
|
|
available from:
|
|
|
|
http://www.gnu.org/software/src-highlite/
|
|
|
|
In order to check if your source-highlight installation already includes
|
|
support for Logtalk, use the following command:
|
|
|
|
% source-highlight --lang-list
|
|
|
|
If support for Logtalk is not included or if it is outdated, copy the file
|
|
"logtalk.lang" to the folder:
|
|
|
|
$prefix/share/source-highlight
|
|
|
|
where $prefix is the source-highlight installation directory (by default,
|
|
/usr/local) and then edit, if necessary, the file:
|
|
|
|
$prefix/share/source-highlight/lang.map
|
|
|
|
and add the entry:
|
|
|
|
lgt = logtalk.lang
|
|
|
|
Usage example for a "foo.lgt" Logtalk source file:
|
|
|
|
% source-highlight --out-format xhtml --input foo.lgt --output foo.html
|
|
|
|
Usually, Logtalk files are formatted using four-space tabs. You may want to
|
|
use the "--tab=4"option to keep you source code formatting choices.
|
|
|
|
You may also use the "logtalk.lang" file with plain Prolog files by using
|
|
the "--src-lang" option. For example:
|
|
|
|
% source-highlight --src-lang lgt --out-format xhtml --input foo.pl --output foo.html
|