0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Qiita】diff:'ファイル名'で差分コードの左上にファイル名を表示する方法

Last updated at Posted at 2022-11-06

対象とする読者

「Qiitaの記事で、差分コードの左上にファイル名を表示したいなぁ...。」
と頭の片隅で思っている人。


(↓こんなイメージ)

index.html
- hogehoge
+ hoge

結論

```diff:index.html
hogehoge
```


これを丸ごとコピーでOK!

補足

ファイル名を表示させる場合と
表示させない場合での色の付け方の違い

- hogehoge
+ hoge
index.html
- hogehoge
+ hoge
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?