prolog syntax highlight

+++ Commercial +++

+++ Commercial +++ End

The JED editor's Simple Prolog syntax highlighting scheme

disk.png prolog.sl (~ 5 KB) Jed Slang file. A Screenshot (~46 KB), comments in german only.

Netscape users shift+click left for downloading or first have a look at it and simply save it as a textfile. Lynx users know what to do.

All (?) ISO predicates and the most common used predicates are highlighted and enhance the convinience editing Prolog source files using the JED editor.

Implementing a simple hightlight scheme is not complicated at all, so your're able to extend prolog.sl   to your personal needs. But feel free to ask for help.

Small Howto

Put something like this into your ~/.jedrc:

add_mode_for_extension ("prolog", "pl");
autoload ("prolog_mode","/home/sax/lib/public_html/download/prolog");

If you don't like the ending "pl" because you're also frequently using the perl mode, replace it with "pro". Then you'll may come in conflict with the IDL mode instead :-)

As an alternative you're also able to declare the mode after a comment sign in the first two (?) lines:

% -*- Prolog -*-

If you like using the fold mode too, you may read fold.txt for the key bindings. locate fold.txt | grep jed

Insert

Fold_Mode_Ok = 1;

into your .jedrc (global variables).
And at the top of your Prolog file:

% -*- mode: Prolog; mode: fold -*-

deutsch.png Inhalt auf deutsch
[Top] up.gif

mailto.png webmaster Zuletzt geändert: Montag, den 06. Oktober 03, 22:01:01h