21
6

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 5 years have passed since last update.

Qiitaの投稿で設定値の変更などの差分を分かりやすく書く方法

Last updated at Posted at 2017-06-11

Markdownにあまり詳しくないのでメモ :writing_hand_tone2:

設定値の変更例を分かりやすくするときとかに使えそう。

差分を分かりやすくする例
- 変更前
+ 変更後

↑こんな感じで表示したかったら

```diff:差分を分かりやすくする例
 - 変更前
 + 変更後
 ```

↑こう書くみたい :wink:

Qiitaでシンタックスハイライト可能な言語一覧 に ”diff” ってありますね :thumbsup_tone2:

★追記
本来はunified形式のためのものなんですね。
@tsuyoshi_choさん、ありがとうございます。)

$ diff -u test_before.txt test_after.txt
unified形式の場合のシンタックスハイライトの例
--- test_before.txt     Sun Jun 11 14:52:53 2017
+++ test_after.txt      Sun Jun 11 14:53:13 2017
@@ -1,3 +1,2 @@
 test1
-test2
-
+test3
21
6
2

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
21
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?