1
1

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のmarkdownでGemfileを表示する方法

1
Last updated at Posted at 2017-09-27

些細な事だが調べても出てこなかった。
要はこれをQiitaで表示したい。
 ↓

Gemfile
gem 'paperclip'

Qiitaでは ``` で文字列をくくるとコード表記をしてくれる。
しかし、Gemfileといったような拡張子の表示されないものは読み込んではくれない。

gem 'paperclip'

上記のようになる。(```Gemfileと書いてある)

調べてみると、QiitaのマークダウンにはPHP:index.phpといったような書き方ができるようだ。試しに該当箇所に:Gemfileと入れると想定していた表示になった。

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?