Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3e499889e0
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (20 sloc) 0.561 kb
#include <QApplication>
#include <QFont>
#include "c_highlighter.hpp"
#include "code_editor.hpp"
using namespace Kiss;
using namespace Kiss::Widget;
int main(int argc, char *argv[])
QApplication app(argc, argv);
CodeEditor editor;
editor.setEditorFont(QFont("Monaco", 24));
new CHighlighter(editor.document());
MarginIndicator error(QColor(255, 0, 0, 70));
MarginIndicator breakpoint(QColor(0, 0, 255, 70));
editor.setMarginIndicator(10, error);
editor.setMarginIndicator(5, breakpoint);;
return app.exec();
Jump to Line
Something went wrong with that request. Please try again.