conf t

インフラエンジニアのメモ

はてなブログでコンソール(bash)のシンタックスハイライト

自分用メモとして残します。

linuxコマンドラインシンタックスハイライトしたい場合は、

```sh です。

before

$ ls -lt
合計 16
-rw-r--r--. 1 root root   15  6月 20 21:02 2015 atest1.txt
-rw-r--r--. 1 root root 1280  6月 20 21:00 2015 test3.php
-rw-r--r--. 1 root root  180  6月 20 21:00 2015 test2.log
-rw-r--r--. 1 root root   15  6月 20 20:59 2015 test1.txt

after

$ ls -lt
合計 16
-rw-r--r--. 1 root root   15  620 21:02 2015 atest1.txt
-rw-r--r--. 1 root root 1280  620 21:00 2015 test3.php
-rw-r--r--. 1 root root  180  620 21:00 2015 test2.log
-rw-r--r--. 1 root root   15  620 20:59 2015 test1.txt

題名と関係ないですが、 C#シンタックスハイライトしたい場合は、```csです。

確か、Qiitaの場合はコンソール用の```consoleシェルスクリプト用に```bashがありました。