Skip to content

Commit

Permalink
Highlight trailing whitespace changes in Diff
Browse files Browse the repository at this point in the history
  • Loading branch information
jwortmann committed Mar 31, 2024
1 parent 581c103 commit 08978a3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Brackets Dark.sublime-color-scheme
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,21 @@
"scope": "meta.separator.diff",
"foreground": "#b39c1d"
},
{
"name": "Diff inserted trailing whitespace",
"scope": "source.diff markup.inserted meta.whitespace",
"background": "color(var(green2) alpha(0.15))"
},
{
"name": "Diff deleted trailing whitespace",
"scope": "source.diff markup.deleted meta.whitespace",
"background": "color(var(red2) alpha(0.15))"
},
{
"name": "Diff changed trailing whitespace",
"scope": "source.diff markup.changed meta.whitespace",
"background": "color(var(orange) alpha(0.15))"
},
// Dockerfile specific rules >> https://packagecontrol.io/packages/Dockerfile%20Syntax%20Highlighting
{
"name": "Dockerfile operator keyword",
Expand Down
15 changes: 15 additions & 0 deletions Brackets Light.sublime-color-scheme
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,21 @@
"scope": "meta.separator.diff",
"foreground": "#9c8819"
},
{
"name": "Diff inserted trailing whitespace",
"scope": "source.diff markup.inserted meta.whitespace",
"background": "color(var(green2) alpha(0.15))"
},
{
"name": "Diff deleted trailing whitespace",
"scope": "source.diff markup.deleted meta.whitespace",
"background": "color(var(red2) alpha(0.15))"
},
{
"name": "Diff changed trailing whitespace",
"scope": "source.diff markup.changed meta.whitespace",
"background": "color(var(orange) alpha(0.15))"
},
// Dockerfile specific rules >> https://packagecontrol.io/packages/Dockerfile%20Syntax%20Highlighting
{
"name": "Dockerfile operator keyword",
Expand Down

0 comments on commit 08978a3

Please sign in to comment.