module salix::util::Highlight
rascal-0.34.0
salix-core-0.2.3
Usage
import salix::util::Highlight;
Source code
http://github.com/usethesource/salix-core/src/main/rascal/salix/util/Highlight.rsc
Dependencies
import salix::HTML;
import ParseTree;
import String;
alias MoreCSS
lrel[str,str](Tree)
function noMore
lrel[str,str] noMore(Tree _)
function highlightToHtml
void highlightToHtml(Tree t, void(list[value]) container = pre, map[str,lrel[str,str]] cats = cat2styles,
int tabSize = 2, MoreCSS more = noMore)
function highlightRec
str highlightRec(Tree t, str current, map[str, lrel[str, str]] cats, int tabSize, MoreCSS more)
function highlightToAnsi
str highlightToAnsi(Tree t, map[str,str] cats = cat2ansi, int tabsize = 2)