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