google-code-prettify

A List of Google Prettify Language Codes


I cannot find this anywhere and I swear I used to be able to very simply without much prying. Can anyone help me? Thanks. I would appreciate it. Also, does prettify support Batch?


Solution

  • You can find a table in the FAQ, under the header For which languages does it work?:

    The comments in prettify.js are authoritative but the lexer should work on a number of languages including C and friends, Java, Python, Bash, SQL, HTML, XML, CSS, Javascript, Makefiles, and Rust. It works passably on Ruby, PHP, VB, and Awk and a decent subset of Perl and Ruby, but, because of commenting conventions, but doesn't work on Smalltalk.

    Other languages are supported via extensions: ...


    You can find the handlers, with their extensions in the loader directory


    For the mapping from extensions to builtin languages, see the registerLangHandler calls in prettify.js