Adding Diff syntax highlighting to Sublime Text
My chosen colour scheme for Sublime Text doesn’t include support for diff/patch files, so I added my own.
To the bottom of my .tmTheme file, I added this just above the closing </array>:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
<dict> <key>name</key> <string>diff.header</string> <key>scope</key> <string>meta.diff, meta.diff.header</string> <key>settings</key> <dict> <key>foreground</key> <string>#009933</string> </dict> </dict> <dict> <key>name</key> <string>diff.deleted</string> <key>scope</key> <string>markup.deleted</string> <key>settings</key> <dict> <key>foreground</key> <string>#DD5555</string> </dict> </dict> <dict> <key>name</key> <string>diff.inserted</string> <key>scope</key> <string>markup.inserted</string> <key>settings</key> <dict> <key>foreground</key> <string>#3333FF</string> </dict> </dict> <dict> <key>name</key> <string>diff.changed</string> <key>scope</key> <string>markup.changed</string> <key>settings</key> <dict> <key>foreground</key> <string>#E6DB74</string> </dict> </dict> |
This sets up a green colour for the meta information, blue for added lines, red for deleted lines and a yellowish colour for changed.
What is you color sheme? because SODA works well in that case.
I use a significantly modified version of IDLE.