Syntax Highlighting Combine diff and xxx

2019-03-25 02:31发布

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?

1条回答
手持菜刀,她持情操
2楼-- · 2019-03-25 03:03

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.

查看更多
登录 后发表回答