語法高亮工具:Pygments
Pygments支持超過100種語言, 并且支持多種輸出格式,比如HTML, RTF等等。Pygments提供了多種樣式,比如’native’, ‘emacs’, ‘vs’等等,可以在 Pygments Demo中選擇某種語言的例子,體驗不同的樣式。
特性:
- a wide range of common languages and markup formats is supported
- special attention is paid to details that increase highlighting quality
- support for new languages and formats are added easily; most languages use a simple regex-based lexing mechanism
- a number of output formats is available, among them HTML, RTF, LaTeX and ANSI sequences
- it is usable as a command-line tool and as a library
- ... and it highlights even Brainf*ck!
項目主頁:http://www.baiduhome.net/lib/view/home/1370414435680
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!