Fast and easy syntax highlighting for selected languages. Features input languages C, C++ Clojure (new) CSS Delphi diff ERB Go Groovy HAML (new) HTML Java JavaScript JSON Lua PHP Python Ruby Sass SQL Taskpaper XML YAML output formats HTML snippet (inline styles) HTML page (CSS classes) Terminal (16 colors) JSON YAML Ruby Array (Tokens) tools coderay executable LoC counter (beta) license MIT basic
python ã®ãã³ã¬ã¼ã¿ã¼æ§æ @decorate 解ãé£ã @decorate æ§æ Python ã®ãã³ã¬ã¼ã¿ã¼ã¯ç解ããã®ãåä»ã§ããPython ã®ãã³ã¬ã¼ã¿ã¼ã¯ syntax sugar ã®æ©è½ã¨ closure ã®æ©è½ã®äºã¤ã使ã£ã¦é¢æ°ãªãã¸ã§ã¯ãã修飾ããæ§æã§ããã§ã closure ã®æ¦å¿µããªã C/C++ ã Java ãªã©ã® è¨èªãã python ã使ãããã«ãªã£ãè ã«ãä¸éã«ãã¹ãããé¢æ°ã¨ @decorator æ§æãçµã¿åãããã³ã¼ãä¾ã使ã£ã¦è§£èª¬ãããã®ã§ã¯è³ã¿ãã沸騰ããã ãã§ãã ç§ã¯ @decorator ã使ã£ãã³ã¼ãä¾ã® python virturla machine ã³ã¼ãã追跡ãããã¨ã§ããã£ã¨ãããã³ã¬ã¼ã¿ã¼ãç解ãã¾ãããç§ã®å³ããããè¦å´ã軽æ¸ãã¦ãããããããã® web page ãã¾ã¨ãã¦ã¿ã¾ãã ãã³ã¬ã¼ã¿ã¼ãç解ããå¾ã§èãç´ã
Akasaka.rbã®IRCã§Rubyã®ãã¢ããã¥ã¡ã³ãã®è©±ãçãä¸ããã¾ããã®ã§ãã¡ãã£ã¨ã ããç´¹ä»ãã¾ããRubyã§ã¯ãPerlãPythonã¨ãã£ãã¹ã¯ãªããè¨èªã¨åãããã«ããã¢ããã¥ã¡ã³ããå©ç¨ã§ãã¾ããä¾ãã°ã次ã®ãããªã±ã¼ã¹ã§ãã hello = <<-EOS Hello, World! EOS puts hello.reverse ä¸è¨ã®ä¾ã§ã¯ãä¸æå¤æ°ã¨ãã¦helloå¤æ°ãå©ç¨ãã¦ãã¾ããããã®ä¸æå¤æ°ããªãããã¨ãã§ãã¾ããEOSã®ç´å¾ã«éãæ¬å¼§ãç½®ãã¨ã¨ã©ã¼ã«ãªãã®ã§æ³¨æãã¾ãããã (<<-EOS Hello, World! EOS ).reverse ããã«ãããããPerlã®ææ³ããã ã¨ãããã®ã§ããã次ã®ãããªæ¸ãæ¹ãã§ãã¾ãã (<<-EOS).reverse Hello, World! EOS Rubyã£ã¦æ¬å½ã«ãã¢ãã§ããï¼ï¼
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}