Bug 487095

Summary: Make text highlighting characters based not ‘whole word’ only
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: drop.521k0
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: REPORTED ---    
Severity: normal CC: jonathan.poelen, waqar.17a
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description drop.521k0 2024-05-16 10:05:49 UTC
SUMMARY
Currently, text highlighting in kate is ‘whole word’ only. For usability, I suggest to make it based on characters instead (this is how it is currently done in gedit and in VS Code).

For example, highlighting the word ‘mode’ in: `mode.function`

Highlights also mode in: mode.script() but not: modeNew.script()

I think it would be useful to alter it so that not words are highlighted, but any sequence of characters.

Ref: https://discuss.kde.org/t/text-highlighting-in-kate-is-whole-word-only-make-it-based-on-characters-instead/15622