This module defines reusable code to colourise Prolog source.
xref_source(SourceID)
.
ColourItem is a closure that is called for each identified fragment with three additional arguments:
Options
Options:
error_position(StartClause, EndClause, ErrorPos)
colour(ColourName)
background(ColourName)
bold(Boolean)
underline(Boolean)
Attributes may be the empty list. This is used for cases where -for example- a menu is associated with the fragment. If syntax_colour/2 fails, no fragment is created for the region.
The following predicates are exported, but not or incorrectly documented.