Help:Editing
From wiki.visual-prolog.com
Visual Prolog Token Coloring
The Wiki has a special Visual Prolog extension. If you write:
<vip>some Visual Prolog code</vip>
The code will be token colered according to Visual Prolog rules (more or less). For example:
<vip>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).</vip>
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).