Menu

#1091 Enable syntax highlighting inside differences

open
nobody
GUI (348)
5
2016-05-13
2009-06-03
No

Problem: Highlighted text is slower to read than normal source code, as the highlighting "knocks out" that text's syntax highlighting. Kind of defeating the purpose of the program don't you think?
Solution: Only highlight the text background, leaving the text itself as is.

I think that solution would work better than even Beyond Compare's syntax highlighting.

Discussion

  • Kimmo Varis

    Kimmo Varis - 2009-06-03

    Not sure what exactly you want? To disable syntax highlighting? In that case there is option to disable syntax highlighting. Menu / Options / Editor / Highlight syntax.

    Or do you want to have syntax highlight in difference lines?

     
  • Anonymous

    Anonymous - 2009-06-03

    I want to have syntax highlighting in the difference lines so that they are easier to read.

     
  • Kimmo Varis

    Kimmo Varis - 2009-06-03

    Thanks for clarification! I altered the summary to more clearly say what this is about.

    Only problem is the colors - we basically use four colors for differences and finding good colors so that every color combination is readable is tricky. Perhaps one solution could be to have background colors light enough and syntax highlighting colors dark enough. But then we can't affect to user's current customizations and just enabling highlighting would make many customizations look bad.

     
  • Kimmo Varis

    Kimmo Varis - 2009-06-03
    • summary: avoiding loss of syntax highlighting --> Enable syntax highlighting inside differences
     
  • Anonymous

    Anonymous - 2009-06-03

    I think the brightness of the colors could be tweaked to suit. And to possibly not tick a checkbox for it for existing users, only for new users.

     
  • Matthias

    Matthias - 2010-01-26

    Isn't WinMerge working like that, just switch off View line difference and select Sytax Highlight.

     
  • Anonymous

    Anonymous - 2010-01-28

    matthias, when comparing differences in 2 files, in the 2 windows that contain the source code files (rather than the 2 panes that display only one source code line) the highlighted lines (only) have no syntax coloring, making them harder to read & follow the flow of things. That is the same regardless of whether View line difference is on or off.

     
  • Matthias

    Matthias - 2010-01-29

    if I switch of coloring view line ifference, the line itself is highlight and the syntax is also working.
    So background is from difference, textcolorer from syntax.
    Both at same time, How can it work?

     
  • Leonardo trevisan lombardi

    I would really love for this feature to be implemented. I would really help and make our work easier.

    I believe the coloring conflit can be easily fixed by using different colors.
    Another option, a more complex one, is to change the highlight diffecence to underline difference.

     

Log in to post a comment.

MongoDB Logo MongoDB