ã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤ããã¼ã«
ã¯ã¦ãªã®ãçµæ§ããæããªã®ã§ããã使ããã¨ããã大å¤å¤§å¤ã
vimcolorã¯perlã§æ¸ããã¦ãã¦(rubyãpythonã«ç¿»è¨³ããããã¼ã¸ã§ã³ãããã)ãã©ã¤ã»ã³ã¹ãä¸æã¨ãããããã¯ã¨ã³ãã«ã¯vimã使ã£ã¦ãããã*.vimä½ã£ã¦ãããåããã¦ããâ¦ã/usr/share/vim/vim71/ã«filetype.vimãscript.vimãsyntax/syntax.vimã¨ããã®ã§èªãã§ã¿ããããã¼ããã¾ãä½ã¨ãããã
ãã§ä»ã®ãã¤ã©ã¤ããã¼ã«æ¢ãã¦ã¿ããhighlightãè¯ãããubuntuã«ããã±ã¼ã¸ãããã(ã¡ãã£ã¨å¤ããã©)ãè¨èªã¯C++ã対å¿ãã¦ããè¨èªãååâ¦diffã«å¯¾å¿ãã¦ããªãã®ãæ°ã«ãªããªãã
http://www.andre-simon.de/doku/highlight/highlight_langs.html
highlight -A foo
ãããæªããªãæªããªãã
ãã©--input-nameãåä½ããªãã£ãããè¨èªæ¤åºãã§ããªãã®ãé§ç®ã ãªããå¾è
ã¯fileã«ã§ãæ¤åºãããã°ãããã¨pythonãªãã¡ã¤ã«ã«file -iãã¦ã¿ããtext/x-pascalã¨ãã¦èªèããã件ã
ãã¨highlightã¯html+jsãphpãé§ç®ãããããã¨ããã¹ãã³ã¡ã³ãã«ã対å¿ãã¦ãªãããã¼ãã
ä»åº¦ã¯source-highlightã使ããã¨æã£ããDè¨èªã¯ãµãã¼ãããã¦ãªããã©ã対å¿ãã¦ããè¨èªã¯ãããªãã«å¤ãã
source-highlight -fesc fooã¨ãããfoo.txtãã§ãããsource-highlight -fesc -i fooã¨ããªãã¨æ¨æºåºåã«åºåãããªããä½ã§ãããã
ãã¤ã©ã¤ãã®è²åããæ°ã«å
¥ããªãç¹ã¨ã³ãã³ãåãé·ãç¹ãé¤ãã°ä¸çªãã·ãªæ°ãããâ¦ã¨æã£ãããã¤ãéãããåä½ããªãã-i /dev/stdinã追å ãã¦ãé§ç®ã
ãã¨ã½ã¼ã¹ãéè¤é¨åå¤ãã¦ãªãã
ãªãã¨ãããjust worksãªãã®ç¡ããã©ãããæ¹è¯ããã®ãä¸çªãªæ°ããã¦ããã
IDEã®ã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤ãã¯ã³ãã³ãã§ã¯ä½¿ããªãã®ããªããã¾ã使ããã¨ãã¦ãä¾åãå¤ããªãããé¿ããããã©ãã³ãã³ãã©ã¤ã³ã®ã¿ã®ãã¼ã«ãããã°ããã®ã«ãªããã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤ãã¨ã¯é¢ä¿ãªããã©inkscapeãªãããguiç¡ããã¼ã¸ã§ã³ã®ã³ãã³ããããã°ããã®ã«ã