Enhancement - debug support

- Added debug=on support.
- Added color.debug= support.
This commit is contained in:
Paul Beckingham 2009-06-20 10:54:01 -04:00
parent 173b3f6828
commit 02518e0223
7 changed files with 56 additions and 30 deletions

View file

@ -281,4 +281,19 @@ std::string colorizeFootnote (const std::string& input)
}
////////////////////////////////////////////////////////////////////////////////
std::string colorizeDebug (const std::string& input)
{
if (gsFg["debug.footnote"] != Text::nocolor ||
gsBg["debug.footnote"] != Text::nocolor)
{
return Text::colorize (
gsFg["debug.footnote"],
gsBg["debug.footnote"],
input);
}
return input;
}
////////////////////////////////////////////////////////////////////////////////