Help:Token Coloring

You can automatically apply token coloring to code written in a large number of programming languages, notably Visual Prolog.

Visual Prolog Token Coloring
If you write:

some Visual Prolog code

The code will be token colered according to Visual Prolog rules (more or less). For example:

predicates isMember : (Elem Value, Elem* List) determ. %@short Succeds is #Value is member of #List. %@end clauses isMember(V, [V|_L]) :- !. isMember(V, [_X|L]) :- isMember(V, L).

The result will look like this:

predicates isMember : (Elem Value, Elem* List) determ. %@short Succeds is #Value is member of #List. %@end clauses isMember(V, [V|_L]) :- !. isMember(V, [_X|L]) :- isMember(V, L).

Other Languages
Other programming languages can be token colored using

where XXXX indicates a programming (see below for supported languages).

If you for example write:

The result will be like this: