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?
A Javascript module and CSS file that allows syntax highlighting of source code snippets in an html page.
I thought it would be helpful to have an actual list rather than just a link. I found it in the loader directory that @MikeSamuel linked to from Javascript code prettifier. As the readme states, the prettify.js comments are the authoritative source. However, What is syntax highlighting and how does it work? provided a better formatted list, so I will copy that below. Refer to the the links for the most up-to-date information.
If you are using the Prettify codes to markup Stack Overflow code, you use
<!-- language: lang-or-tag-here --> your code Language Codes:
Let Prettify interpret the code and guess.
defaultExplicitly do not use any syntax highlighting.
lang-noneBash and other Shell scripting
lang-bash, lang-bsh, lang-csh, lang-shC, C++, et al
lang-c, lang-cc, lang-cpp, lang-cxx, lang-cyc, lang-mC#
lang-csClojure
lang-cljCoffeeScript
lang-coffeeCSS
lang-cssDart
lang-dartDelphi
lang-pascalErlang
lang-erl, lang-erlangGo
lang-goHaskell
lang-hsHTML
lang-htmlJava
lang-javaJavaScript
lang-js, lang-javascriptJSON
lang-jsonLaTeX and TeX
lang-latex, lang-texLisp and Scheme
lang-cl, lang-el, lang-lisp, lang-lsp, lang-scm, lang-ss, lang-rktLua
lang-luaOCaml, SML, F#, et al
lang-fs, lang-mlPascal
lang-pascalPerl
lang-pl, lang-perlPHP
lang-phpProtocol buffers
lang-protoPython
lang-py, lang-python, lang-cvR and S
lang-r, lang-sRegex
lang-regexRuby
lang-rb, lang-rubyRust
lang-rc, lang-rs, lang-rustScala
lang-scalaSQL
lang-sqlVHDL
lang-vhdl, lang-vhdVisual Basic
lang-vb, lang-vbsXML
lang-xml
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With