I'd like to publish some of the many programs I've written on the web.
Is there a syntax highlighting Linux web publishing application (CMS/Blog/RoR app) that displays syntax for C++, Python, Bash scripts, SQL, VBA, awk, Erlang, java, makefiles, Ruby, Pascal and other languages?The more syntax settings configuration files, the better.
The extensions I have in Textpad (for which I have syntax highlighting -- syn files) are
.as, .asm, .asp, .awk, .bas, .bat, .c, .conf, .cpp, .cs, .c开发者_C百科tl, .dfm, .dsc, .erl, .fnc, .h, .hpp, .inf, .ini, .jav, .java, .mak, .nsh, .nsi, .ora, .pas, .pkb, .pks, .pl, .prc, .py, .reg, .rsp, .sh, .sql, .syn, .tcl, .trg, .vw, .xml, .xsl, .xslfoThere are 100% JavaScript solutions for this so it can be independent of the CMS.
Example: SyntaxHighlighter
And here's a list...
Try the Joomla CMS: http://www.joomla.org/
It has built-in support for Geshi: http://qbnz.com/highlighter/
https://gist.github.com/ is pretty nice.
精彩评论