Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
We are trying to create an environment similar to code blocks.For example when we type the int datatype it gets highlighted. Similarly it should change the color of the datatype when we give input in set text.
Check this out: http://doc.qt.io/qt-5/qtwidgets-richtext-syntaxhighlighter-example.html