Skip to content

Instantly share code, notes, and snippets.

@kro12
Created October 1, 2013 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kro12/6777737 to your computer and use it in GitHub Desktop.
Save kro12/6777737 to your computer and use it in GitHub Desktop.
Add Git diff highlighting to Sublime Text 2
###############################################################################
# Add Git diff highlighting to Sublime Text 2 #
# Add the following to your chosen theme file (.tmTheme) before closing array #
###############################################################################
<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment