Bug 480069

Summary: Add syntax highlighting
Product: [Applications] kompare Reporter: nilskemail+kde
Component: generalAssignee: Kompare bugs <kompare-bugs-null>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description nilskemail+kde 2024-01-19 22:39:12 UTC
SUMMARY
Kompare does not highlight the tokens of the files but this is often useful.

STEPS TO REPRODUCE
1. Compare two files containing source code

OBSERVED RESULT
The text is just gray/black without any highlighting except for the green/red background for added/removed areas

EXPECTED RESULT
The text color should highlight important tokens based on the programming language in the file.
Comment 1 Kevin Kofler 2024-01-20 05:01:07 UTC
Sure, this would be nice. But mainly, this needs someone to implement it. There are then also some concerns about the details, e.g., contrast issues if the highlighting colors are too close to the background colors (e.g., many KatePart syntax highlighting definitions use green and red text for some syntax), what to do if the highlighting definition specifies a background color (which it can do, e.g., several use red background for what they think are syntax errors), etc. But those can be sorted out if and when someone actually has the time to do the work. I do not.