Provide hierarchical colouring information on top of the
library(prolog_colour). We need ordered hierarchical information to
create HTML fragments.
colour_fragments(+In, -Fragments:list) is det- Create a list of colour fragments from In.
- Arguments:
-
Fragments | - List of fragment(Start, End, Class, Subs) |
include_fullstops(+FragmentsIn, -FragmentsOut) is det[private]- Include fullstops into the term that preceeds them.
fragment_hierarchy(+Fragments, -Hierarchy) is det[private]- Translate list of
fragment(Start, End, Class)
into
fragment(Start, End, Class, SubFragments)
.
- To be done
- - Detect improper nesting. How to handle?