Code editor widget for C++/Qt5
Written in pure C++/Qt5. No any dependencies.
Component has been created for Enki editor
Currently there are no API documentation, but the header is quite clear. See also example application.
Features
All features are configurable
- Syntax highlighting for 196 languages
- Smart indentation algorithms:
- Generic
- Python
- Ruby
- XML
- Lisp
- Scheme
- C, C++
- JavaScript
- Java
- PHP
- Go
- And many others
- Line numbers
- Bracket highlighting
- Visible witespaces
- Marker for too long lines
- Bookmarks
- Current line highlighting
Build dependencies
- C++ compiler
- CMake or qmake
- Qt5 headers
Building and installation
CMake and qmake is supported. CMake is recommented.
mkdir build
cd build
cmake ..
make
make install # might require sudo
Author
Andrei Kopats
Bug reports, patches
Qutepart and Katepart
Kate and Katepart (an editor component) is really cool software. The Kate authors and community have created, probably, the biggest set of highlighters and indenters for programming languages.
- Qutepart uses Kate syntax highlighters (XML files)
- Qutepart contains a port from Javascript to C++ of Kate indenters
- Qutepart doesn't contain Katepart code.
Nothing is wrong with Katepart. Qutepart has been created to enable reusing highlighters and indenters in projects where a KDE dependency is not acceptable.
License
LGPL v2
I don't mind if you use the code under WTFPL license. But consult you layers if I have right to release it this way.