コードブロックにカラーを付けよう GitHub 上でソースコードが含まれるコメントのやり取りを行う場合、```(三連バッククォート)をソースコードの前後に挟むことで、その部分を コードブロック として表現できます。 例 Write Preview このようにコードブロックで表現するとソースコードの可読性が上がります。 ここで 開始の三連バッククォートの後 にその言語に対するキーワードを記述すると、コードブロックでシンタックスハイライトが有効になります。 Write Preview 対応言語一覧 シンタックスハイライト可能な言語は GitHub 公式の設定ファイル に書かれています。 language_id というものが 0 開始で連番になっているため、ざっと見た感じ 431 の言語がサポートされているようです。 多いですね。 一部抜粋 YAML に関する設定を見てみましょう。 YAML: