From 57fd674ea20f28b03c3e143d296c60d550b2ebe8 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 31 Dec 2018 10:37:16 +0100 Subject: Add syntax highlighting to the editor. --- src/mainwindow.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mainwindow.cc') 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); -- cgit v1.2.3