Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

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
Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away