Source code view widget
-
wrote on 17 Mar 2017, 13:08 last edited by
I need to view and edit code in my application. What is a good widget I could use to obtain syntax highlighting and features such as search&replace?
-
wrote on 17 Mar 2017, 13:12 last edited by
-
wrote on 17 Mar 2017, 16:53 last edited by
Sorry, KDE widgets would require too many dependencies and cross-platform support is not KDE's main priority unlike Qt's. Any others available?
-
wrote on 17 Mar 2017, 17:21 last edited by
To add to @VRonin, KSyntaxHighlighting framework:
The KSyntaxHighlighting framework is a tier 1 functional framework that solely depends on Qt (no dependency on Qt Widgets or QML), is very well unit tested, and licensed under the LGPLv2+.
-
To add to @VRonin, KSyntaxHighlighting framework:
The KSyntaxHighlighting framework is a tier 1 functional framework that solely depends on Qt (no dependency on Qt Widgets or QML), is very well unit tested, and licensed under the LGPLv2+.
wrote on 17 Mar 2017, 18:01 last edited by VRonin@Wieland True but I considered Kate more relevant here as, from https://api.kde.org/frameworks/syntax-highlighting/html/index.html
To not turn this into yet another text editor, the following things are considered out of scope:
- code folding, beyond providing folding range information
- auto completion
- spell checking
- user interface for configuration
- management of text buffers or documents
If you need any of this, check out KTextEditor.
KDE widgets would require too many dependencies
Not all of them but this one is Tier 3 so I can see how this can scare people off but at the end of the day is very easy using CMake to build the whole KDE API environment
cross-platform support is not KDE's main priority
It's not neglected either btw, Kate works in all desktop environments supported by Qt
-
@Wieland True but I considered Kate more relevant here as, from https://api.kde.org/frameworks/syntax-highlighting/html/index.html
To not turn this into yet another text editor, the following things are considered out of scope:
- code folding, beyond providing folding range information
- auto completion
- spell checking
- user interface for configuration
- management of text buffers or documents
If you need any of this, check out KTextEditor.
KDE widgets would require too many dependencies
Not all of them but this one is Tier 3 so I can see how this can scare people off but at the end of the day is very easy using CMake to build the whole KDE API environment
cross-platform support is not KDE's main priority
It's not neglected either btw, Kate works in all desktop environments supported by Qt
wrote on 17 Mar 2017, 18:15 last edited by@VRonin Yes, all true. I used Kate as a plugin before, too. Works very well. But, if the OP doesn't want to use KTextEditor, I thought he might at least want to use the highlighter.
-
wrote on 10 May 2017, 10:45 last edited by
I've found https://github.com/edbee/edbee-lib since then which we'll be giving a go!
-
wrote on 8 Jul 2017, 09:02 last edited by
Update: we've deployed it in https://www.mudlet.org/2017/07/mudlet-3-3-1-new-code-editor-new-irc-and-utf8-in-lua-support/. Pretty lightweight, has themes and multi-caret editing - if you're in the market for a new editor I recommend it.