语法高亮显示组合diff和xxx

mat*_*001 16 diff syntax-highlighting github

我刚看到这个(旧的)帖子,我想知道我们是否可以使用GitHub风格的降价相同的东西:将正常的语法高亮与diff一个结合.

语法高亮:diff和normal组合

我试过几件事,比如

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

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

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

```diffpython
- import that
+ import this
```
Run Code Online (Sandbox Code Playgroud)

但是他们都没有工作......所以,你们中的任何人都知道如何做到这一点吗?或者它不可能?

Von*_*onC 7

您提到的旧帖子是“语法突出显示的差异”,2014 年 12 月

但是,当前GFM(GitHub Flavored Markdown)中没有任何内容表明当前支持这种特定组合(差异和语法突出显示)。

  • @ShimmyWeitzhandler 据我所知,[2022 年讨论](https://github.com/github/linguist/discussions/5758) 对此并没有留下太多希望。 (2认同)