Prism HTML code syntax highlighter

Supported languages

Prism is a lightweight syntax highlighter. It is a modern good tool, but for some weird reason the developers of Prism do not specify what languages are supported. Knowing the language though is essential to highlighting as you must specify it to properly color-code the source code.
So here is the list of the main languages.


apacheconf
bash
c
clike
cpp
css
git
http
ini
java
javascript
latex
markup
none	// to temporary stop highlighting an element that is descendant of a code section
objectivec
php
python
sql
			

Additional languages can be found on Prism Github repository, in the components folder. A supported language is identified by the text between the prefix prism- and suffix .js or .min.js, for example the Apache configuration language is named apacheconf and the corresponding source file is prism-apacheconf.js on Github.

Back to code page