语法突出显示组合diff和xxx [英] Syntax Highlighting Combine diff and xxx
问题描述
我刚刚看到这个(旧)帖子,我想知道是否可以使用GitHub flavored markdown做同样的事情:将正常语法突出显示与 diff
一个。
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.
我试了几次东西,比如
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?
推荐答案
您引用的旧帖子是语法高亮区别,2014年12月
The old post you refer to is "Syntax Highlighted Diffs ", Dec. 2014
然而,目前的 GFM(GitHub Flavored Markdown)暗示了这种特殊的组合(差异和语法高亮)目前受支持。
However, nothing in the current GFM (GitHub Flavored Markdown) suggests this particular combination (of diff and syntax highlighting) is currently supported.
这篇关于语法突出显示组合diff和xxx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!