Sublime Forum

Diff Syntax Highlighting

#1

Hello,

I have been struggling to find a way to add syntax highlighting to Diffs. I have seen other people add a bunch of XML into their .tmTheme file, but I am unable to find that file on OS X: dzone.com/articles/adding-diff-syntax

Any assistance will be very much appreciated.

Huw

0 Likes

#2

ST already prrovides diff highlighting by default.

Other than that, refer to docs.sublimetext.info/en/latest/ … xdefs.html

0 Likes

#3

Doesn’t look highlighted to me… I’ve set the Syntax to Diff, but no highlighting…

0 Likes

#4

The problem comes probably from you Color scheme. Not all Color scheme gives color for the scopes “markup.inserted”, “markep deleted” put by the “diff syntax”.

For example the Cobalt color scheme should highlight your diff file.

0 Likes