| Did you know ... | Search Documentation: |
| prolog_colour.pl -- Prolog syntax colouring support. |
This module defines reusable code to colourise Prolog source.
prolog_colourise_stream(+Stream, +SourceID, :ColourItem) is det
prolog_colourise_stream(+Stream, +SourceID, :ColourItem, +Opts) is detxref_source(SourceID).
ColourItem is a closure that is called for each identified fragment with three additional arguments:
Options
prolog_colourise_query(+Query:string, +SourceId, :ColourItem)
prolog_colourise_term(+Stream, +SourceID, :ColourItem, +Options)Options:
error_position(StartClause, EndClause, ErrorPos)
vararg_goal_classification(+Name, +Arity, -Class) is semidet[multifile]
syntax_colour(?Class, ?Attributes) is nondetcolour(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.