KTextEditor provides a powerful text editor component that you can embed in your application. The text editor component contains many useful features, from syntax highlighting and automatic indentation to advanced scripting support, making it suitable for everything from a simple embedded text-file editor to an advanced IDE. WWW: http://api.kde.org/frameworks-api/frameworks5-apidocs/ktexteditor/html/index.html