けものフレンズ風のソースコードハイライト
けものフレンズ風?のソースコードのハイライトを作ったよ!
GitHub の Web ページと Google Chrome 限定。コードが表示されている画面で、開発者ツールに次のコードを入力してみてね。
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
var c=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],i=0;$$(".blob-code").forEach(function(v){v.innerHTML = v.innerText.replace(/./g,function(s){return '<span style="color:#'+c[i++%c.length]+'">'+s+'</span>'})}) |
関連ツイート
すごーい!きみはカラフルなターミナルなんだね!https://t.co/R5S4DEcqU8
(基本これ https://t.co/9FHbMoY3Np) pic.twitter.com/6RFLl7NDcN
— kuwa1 (@kuwashima) February 23, 2017
thanks for the inspiration
https://t.co/45MqX0fvHN
— EGOIST (@localhost_5173) February 23, 2017