summaryrefslogtreecommitdiff
path: root/src/mainwindow.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-12-31 10:37:16 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2018-12-31 10:37:16 +0100
commit57fd674ea20f28b03c3e143d296c60d550b2ebe8 (patch)
tree20a8e30ace2615dc6a7ca87bd93b1a063fd93b01 /src/mainwindow.cc
parent9e3175f399a7a636859130de91e89a86fe12033c (diff)
Add syntax highlighting to the editor.
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r--src/mainwindow.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index 1b7b37b..fa65cb5 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -56,6 +56,8 @@ MainWindow::MainWindow(QString p)
splitter->addWidget(editor);
connect(editor, SIGNAL(textChanged()), this, SLOT(programChanged()));
+ highlighter = new Highlighter(editor->document());
+
out = new OutputWindow();
splitter->addWidget(out);