47

I just came across an edit, specifically here where the edit happened because of poor default highlighting. So the only real edit is adding

<!-- language-all: lang-none -->

to the top of the code block. Unfortunately, when switching to the generated markdown tab, you still cannot see what the syntax highlighter is actually doing with the code block.

enter image description here

is all that is seen. This makes it difficult (impossible?) to tell how the edit will actually affect the code block.

Would it be possible to have a checkbox or something somewhere on the review page that allows you to toggle the diff colouring?

(For reference the actual "before" and "after" as rendered on the site are below)

enter image description here

8
  • 2
    [FYI] You can always switch to markdown view to see those kinds of changes. See this Jun 9, 2016 at 19:29
  • 5
    @NathanOliver - that doesn't show you what the effect of that line actually is. Jun 9, 2016 at 19:37
  • 2
    @MartinSmith I really need to read the question better. This sounds nice to have. Jun 9, 2016 at 20:04
  • 2
    In situations like this one it would be a huge help. (Feel free to use this pic, BTW.)
    – Laurel
    Jun 10, 2016 at 0:06
  • 2
    The current workaround is to manually compare the current post in one tab with the Improve Edit version in another. This is rather clumsy. Jun 10, 2016 at 1:52
  • 1
    And this is why, boys and girls, markdown should be the preferred diff.
    – Braiam
    Jun 10, 2016 at 16:43
  • @Braiam Have you read any of the preceding comments before adding yours? Jun 10, 2016 at 16:59
  • 1
    @MartinSmith well, obviously it wasn't enough :P
    – Braiam
    Jun 10, 2016 at 17:16

1 Answer 1

20

For the time being, I created a user script that adds a toggle:

Revision diff color toggle example


You can find the user script here on StackApps.

1
  • This script does work to remove the red /green diff colours. Unfortunately, at least on the suggested edits page, the page does not seem to colourize the code blocks, which still makes it hard to tell in this case how the code block will be rendered differently. Jun 17, 2016 at 11:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .