Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • meld meld
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 199
    • Issues 199
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • meldmeld
  • Issues
  • #566
Closed
Open
Issue created Mar 15, 2021 by Elton (Eddie) Hartman@Eddie-Hartman

UTF-8 BOM breaks syntax highlighting.

Windows 10 Version: 20H2 Meld 3.20.3

Comparing two CSharp files is not syntax highlighting past the first line. It is picking up on the fact that the file is a CSharp file, but not highlighting it for whatever reason.

Another interesting behavior is that if I make changes, Meld with then highlight those changes properly, but the whole file still won't syntax highlight properly.

Here is an example: File: https://gitlab.com/Eddie-Hartman/ProjectEulerSolutions/-/blob/master/ProjectEulerExercises/Problems/Problem12.cs Comparing the latest with the previous version: image

After making a change (moved changes from left to right): image Notice the line now syntax highlighting.

Edit: An important note is that this doesn't happen with all files. I've so far only seen it with CSharp files or it just doesn't pick up the type properly (.vue files not being HTML), but once I update the file type it works. No dice for CSharp though.

Edited Mar 19, 2021 by Kai Willadsen
Assignee
Assign to
Time tracking