File "fancy"

This module allows the colorizing of Prolog texts inside a HTML page. By extending the scanner from the Prolog system we read tokens and fillers. These are then rendered using various character style classes. Multi-line tokens and fillers are broken up and newline characters are inserted. This allows a colorizing target which is a pre HTML element.

The following fancy predicates are provided:

fancy_atom(A, B, P):
The predicate succeeds in B with the colorized A useing the paragraph class P to color lines.
colorize_elem(P, Q):
The predicate succeeds. As a side effect the inner HTML of Q is replaced by a colorized version of the inner text of P.

Kommentare