commit | ece1ac8511780de0179f1059bbbb42ab3d994156 | [log] [tgz] |
---|---|---|
author | swissChili <swisschili@fastmail.com> | Fri Feb 25 11:20:42 2022 -0800 |
committer | swissChili <swisschili@fastmail.com> | Fri Feb 25 11:20:42 2022 -0800 |
tree | a1d276d0d4b964d0438a65134cf385e41ea6ccd3 | |
parent | 732628ecdef188098715eb521cd119c96a525ca1 [diff] [blame] |
Add formatted diagnostic output to NotebookCell
diff --git a/PPrint.h b/PPrint.h index 3ae9546..09327af 100644 --- a/PPrint.h +++ b/PPrint.h
@@ -54,7 +54,17 @@ return static_cast<QString>(val); } -QString pprint(ParseResult val, const Parser &parser); +class PPrint +{ +public: + enum Style + { + ANSI, + HTML + }; +}; + +QString pprint(ParseResult val, const Parser &parser, PPrint::Style style = PPrint::ANSI); void sout(QString string); void eout(QString string);