I have been using - and loving - Sublime Merge for about a year now. I would like to enhance code presentation in the diff viewer by providing custom highlighting rules to certain keywords contained in the comments of my C++ code, like “TODO”, “DEBUG”, etc. I would like them to be prominently displayed in the diff viewer to prevent accidental check-in of code which is not meant to go into the repo. Is there a way to achieve this?
Sublime Merge: Highlight custom keywords in the diff viewer
OdatNurd
#2
Technically yes, in the same manner as it would be done in Sublime Text. However that involves modifying the syntax definitions for the languages you use to be able to detect custom words and apply information to them that the color scheme in use can highlight.
As such, while possible it’s up there on the difficulty curve a fair bit.
In Text you could also use a plugin to enhance this as well; however currently Merge doesn’t have a plugin host to do something similar.
1 Like