32

I've just seen this (old) post, and I was wondering if we could the same thing using GitHub flavoured markdown: Combine the normal syntax highlighting with the diff one.

syntax highlighting: diff and normal combined

I tried a few things, like

```python&diff
- import that
+ import this
```

```python
- import that
+ import this
```

```pythondiff
- import that
+ import this
```

```diffpython
- import that
+ import this
```

But none of them worked... So, do any of you know how to do this? Or it's not possible?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
math2001
  • 4,167
  • 24
  • 35

1 Answers1

14

The old post you refer to is "Syntax Highlighted Diffs ", Dec. 2014

However, nothing in the current GFM (GitHub Flavored Markdown) suggests this particular combination (of diff and syntax highlighting) is currently supported.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250