highlightBase

Base code for highlight and unhighlight, calling the highlightCode callback parameter on all embedded sections to handle how it is emitted.

string
highlightBase
(
string str
,
void delegate
(
string code
,
ref Appender!string output
)
highlightCode
)

Parameters

str string

A string that might contain embedded code. Only code will be modified. If the string doesn't contain any embedded code, it will be returned as is.

highlightCode void delegate
(
string code
,
ref Appender!string output
)

The callback to call for embedded and inlined code sections. D_CODE macross will be automatically prefixed and suffixed before/after the call to this function.

Meta