ddoc.unhighlight

Converts embedded code sections to plain text inside (D_CODE) without any syntax highlighting applied. This can be used as lightweight alternative to ddoc.highlight when syntax highlighting the code is not actually needed.

Members

Functions

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

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

unhighlight
string unhighlight(string str)

Parses a string and replace embedded code (code between at least 3 '-') with plaintext.

Meta

Authors

Brian Schott, Mathias 'Geod24' Lang, Jan Jurzitza