16
16

More than 5 years have passed since last update.

プレゼン資料にハイライトされたコードを載せる方法

Last updated at Posted at 2014-04-25

勉強などのプレゼン資料を作成する際に、コードをSublime Textなどのエディタで見た時のようのハイライトしたいと思って調べたら簡単な方法があったのでその方法のメモです。

Step.0

homebrewをインストールする

Step.1

コマンドラインツールでインストール:

$ brew install highlight

Step.3

自分の書いたコードをハイライトする、例:

$ highlight -O rtf test.php | pbcopy

こうすることでクリップボードに、test.php内に書かれたコードがハイライトされコピーされます。

Step.4

プレゼン資料などコードを表示したい場所に貼り付ける。

highlightの対応する言語やハイライトなどに関してはこちらを参照してください

参考

Code highlighting for Keynote presentations

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