Source code of a simple code editor for the Qt framework using internal classes for syntax highlighting via regular expression, code completion, and margin handling.