root/trunk/wenv/highlight/NOTES.txt

Revision 4662, 1.9 KB (checked in by pmoura, 5 days ago)

Updated copyright notice.

  • Property svn:eol-style set to native
Line 
1================================================================
2Logtalk - Open source object-oriented logic programming language
3Release 2.35.0
4
5Copyright (c) 1998-2009 Paulo Moura.        All Rights Reserved.
6Logtalk is free software.  You can redistribute it and/or modify
7it under the terms of the "Artistic License 2.0" as published by
8The Perl Foundation. Consult the "LICENSE.txt" file for details.
9================================================================
10
11
12This directory contains files that provide support for using version 2.6.9
13or later of the Highlight package by Andre Simon with Logtalk source files.
14A detailed description on the Highlight package is available from:
15
16    http://www.andre-simon.de/
17
18
19These support files are dual-licensed under the Artistic License 2.0 and the
20Highlight license.
21
22In order to check if your Highlight installation already includes support
23for Logtalk, you may use the following command:
24
25    % highlight --list-langs
26
27Look in the resulting listing for the "lgt" extension. If support for Logtalk
28is not included or if it is outdated, copy the file "lgt.lang" to the folder:
29
30    $prefix/share/highlight/langDefs/
31
32where $prefix is the Highlight installation directory (by default, /usr).
33
34Usage example for a "foo.lgt" Logtalk source file:
35
36    % highlight --replace-tabs=4 --xhtml --input=foo.lgt --output=foo.html --style=kwrite
37
38You should try different style files (using the --style option) in order to
39find which ones provide the more satisfactory results. As Logtalk files are
40usually formatted using four-space tabs, the option "--replace-tabs=4" is
41necessary to keep you source code properly formatted.
42
43You may also use the "lgt.lang" file with plain Prolog files by using the
44"--syntax" option. For example:
45
46    % highlight --syntax=lgt --xhtml --input=foo.pl --output=foo.html
47
48As the Highlight package itself, the "lgt.lang" file is licensed under the
49GNU GPL 2 license.
50
51
52THIS SYNTAX COLORING FILE IS UNDER DEVELOPMENT.
Note: See TracBrowser for help on using the browser.