#include <highlighter.h>
Public Member Functions | |
| Highlighter (QTextDocument *parent=0) | |
| Constructor. | |
Protected Member Functions | |
| void | highlightBlock (const QString &text) |
| Highlight the given text block. | |
Private Member Functions | |
| void | apply (const QString &text, QTextCharFormat format, QRegExp expression) |
| Apply highlighting. | |
Inputted pseudo-assembler code will be highlighted automagically thanks to this class.
| Highlighter::Highlighter | ( | QTextDocument * | parent = 0 |
) |
Constructor.
| parent | Parent object |
| void Highlighter::apply | ( | const QString & | text, | |
| QTextCharFormat | format, | |||
| QRegExp | expression | |||
| ) | [private] |
Apply highlighting.
| text | Text block to apply highlighting to | |
| format | Format of highlighting (color) | |
| expression | Expression that was matched |
| void Highlighter::highlightBlock | ( | const QString & | text | ) | [protected] |
Highlight the given text block.
| text | Text block to test for highlighting |
1.5.6