WordPress.comにて、Gistを使って、ソースコードを綺麗に表示させる方法を紹介します。
以下のようなコードで表示することができます。
※「https://gist.github.com/」以降は、Gistに登録したコード毎のURLを記載します。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[gist https://gist.github.com/motoraku/761fde74e6e05ff91403 /] |
手順概要
- GitHubへユーザ登録
- Gistへソースコードを登録
- WordPressにて、コード記載