Diff syntax highlighting doesn't work
See original GitHub issueHi, using Sublime Text 2.0.1 and latest version of your plugin, for some reason diff syntax highlighting isn’t working. 😦 When running diff, it says in the status bar:
Info: Invalid language: Diff. Available: JavaScript, ..., Line 13, Column 1
Checked Sublime Packages for Diff folder - it’s there. What may be the problem?
Issue Analytics
- State:
- Created 11 years ago
- Comments:6
Top Results From Across the Web
Diff syntax highlighting in Github Markdown - Stack Overflow
I use the ```csharp to get csharp highlighting. I sometimes want to highlight something specific in the code using bold or anything. I...
Read more >"diff" Syntax highlighting broken? - Atlassian Community
"diff" Syntax highlighting doesn't seem to work? Create a repo - commit and change, make a change, put the output of "git diff ......
Read more >Syntax highlighting doesn't work in partial diff in Pull requests
Same issue is still present where full diff has correct syntax highlighting and partial diffs (snippets of code in the Files tab) don't....
Read more >Syntax Highlighting Diffs In Code - Steven Hicks
Syntax Highlighting A Code Diff Instead of specifying the programming language in the fenced code block, I can specify diff . Like the...
Read more >Diff language does not highlight .diff or .patch files #80494
I've tried to view files in either diff or diff -u format, neither highlight within the VSCode editor window, despite the language being ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jonaf: Thank you for this. It was exactly what I was looking for.
This is what I am using with the iPlastic theme:
Which looks like this:
To make this work for other themes, the short-cut is to modify the *.tmTheme file for the theme you want to work, and copy over the diff definitions from the Monokai theme. I added this to my *.tmTheme file for the Wombat theme, and it works fine. (Note, you can change the hex values if you want to forcibly choose a different color scheme for diff specifically to better match your theme, i.e. if it’s a light-on-dark theme.)