Commit Window Diff Showing Added XML File As all Red

Issue #104 resolved
created an issue

I added a XML file to my project, and did "thg ci" to bring up the dialog to view the changes prior to committing. I noticed that the XML file's text was all red, leading me to believe those lines were deleted.

I checked with another non-XML file that was also added, but it was not all red text.

Running 1.9.5

Comments (6)

  1. Steve Borho

    Any time thg shows full file contents, it tries to auto-detect the file type and apply a syntax highlighting lexer. These lexers are all hard-coded into the QScintilla library, so there's not a lot we can do to modify them.

    There's a vague goal to allow the user to provide explicit patterns to override the auto-detection, but nothing beyond that.

  2. Log in to comment