Skip to main content

module salix::util::Highlight

rascal-0.41.2
org.rascalmpl.salix-core-0.2.9

Usage

import salix::util::Highlight;

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)