mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
Third present for Bo: Add syntax highlighting to the LateX preamble.
TODO: extract the latexHighlighter class into its own .[Ch] files. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17553 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
68e8329644
commit
be3fc71676
@ -24,6 +24,8 @@
|
||||
#include "Qt2BC.h"
|
||||
#include "checkedwidgets.h"
|
||||
#include "qt_helpers.h"
|
||||
// For latexHighlighter use in the preamble.
|
||||
#include "QViewSource.h"
|
||||
|
||||
#include "bufferparams.h"
|
||||
#include "encoding.h"
|
||||
@ -373,6 +375,9 @@ QDocumentDialog::QDocumentDialog(QDocument * form)
|
||||
// preamble
|
||||
preambleModule = new UiWidget<Ui::PreambleUi>;
|
||||
connect(preambleModule->preambleTE, SIGNAL(textChanged()), this, SLOT(change_adaptor()));
|
||||
// This is not a memory leak. The object will be destroyed
|
||||
// with preambleModule.
|
||||
new latexHighlighter(preambleModule->preambleTE->document());
|
||||
|
||||
|
||||
// bullets
|
||||
|
Loading…
Reference in New Issue
Block a user