Bug 480069 - Add syntax highlighting
Summary: Add syntax highlighting
Status: REPORTED
Alias: None
Product: kompare
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Kompare developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-19 22:39 UTC by nilskemail+kde
Modified: 2024-01-20 05:01 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.