|
STC_editor
Qt text editor for STC markup used on cpp0x.pl
|
Text editor widget with line numbers and support for STC markup. More...
#include <CodeEditor.h>
Inherits QPlainTextEdit.
Public Member Functions | |
| void | setSyntaxMode (SyntaxMode mode, bool rehighlightNow=true) |
| Switches the highlighting of the whole document. | |
| void | setSyntaxModeChosenByUser (SyntaxMode mode) |
What the user chose in the "Syntax" menu: applied now and remembered for the current file, so it is the same after the file is opened again (.txt can be an STC article or a plain note). | |
Text editor widget with line numbers and support for STC markup.
Extends QPlainTextEdit with:
[cpp]...[/cpp]) in the document,| void CodeEditor::setSyntaxMode | ( | SyntaxMode | mode, |
| bool | rehighlightNow = true |
||
| ) |
Switches the highlighting of the whole document.
Opening a file chooses the mode by its extension, this is what the "Syntax" menu calls to override it. rehighlightNow=false is for content which is about to be replaced.