Ruby語法高亮庫:Coderay
CodeRay是一個快速和簡易的語法高亮Ruby庫。
特性:
輸入語言
- C, C++
- Clojure (new)
- CSS
- Delphi
- diff
- ERB
- Groovy
- HAML (new)
- HTML
- Java
- JavaScript
- JSON
- PHP
- Python
- Ruby
- SQL
- XML
- YAML
輸出格式
- HTML snippet (inline styles)
- HTML page (CSS classes)
- Terminal (16 colors)
- JSON
- YAML
- Ruby Array (Tokens)
tools
coderay
executable- LoC counter (beta)
license
基礎特性:
- fast: 1 MB/s!
- smart: doesn't choke on crazy code
- safe: handles bogus input gracefully
- pure Ruby implementation
- no dependencies
- plugin system
- line numbers
- nested languages
- encoding-aware (Ruby 1.9+, beta)
- extensive test suite
支持平臺
- MRI 1.8.7+
- MRI 1.9.1+
- JRuby 1.5.2+
- Rubinius 1.2+
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!