blog に gist を貼り付けることが多いです。見た目を変えたいなぁと思っていたのでやってみました。
参考にしたのはこちら。
色合いは自分の Emacs のハイライトを htmlize.el したものを参考にしてやってみました。やってみたんですが、どうにもクドイので実際にこのまま使うか迷っています。
こんな感じ。
css
用意した css は以下のものです。
余談ですが
Emacs では color-theme.el の midnight を少し変更したものを使っています。
(require 'color-theme nil t)
(color-theme-initialize)
(color-theme-midnight)
(set-face-background 'region "blue4")
(set-face-background 'trailing-whitespace "purple4")
(set-face-background 'modeline-buffer-id "grey5")
(set-face-foreground 'modeline-buffer-id "maroon2")
(set-face-background 'mode-line "grey20")
(set-face-foreground 'mode-line "grey75")
(set-face-background 'mode-line-inactive "grey3")
(set-face-foreground 'mode-line-inactive "grey35")
(set-face-background 'secondary-selection "red")
(set-face-underline-p 'modeline nil)
(custom-set-faces
'(font-lock-comment-face ((t (:italic nil :foreground "slate gray")))))
Scheme のハイライトは quack.el の pltish を少し変更しています。
(custom-set-faces
'(quack-pltish-keyword-face ((t (:bold t :foreground "maroon2"))))
'(quack-pltish-defn-face ((t (:bold t :foreground "darkgoldenrod3"))))
'(quack-threesemi-semi-face ((t (:bold t :foreground "blue"))))
'(quack-threesemi-text-face ((t (:bold t :foreground "blue")))))
追記
gist のハイライトの変更は止めました。