<pre class="prettyprint"><code class="language-html">YOUR CODE HRER</code></pre>
Above the code is for HTML. If you want to use syntax highlighter for specific style or language, you must replace language-HTML with language-value. Given the value and attribute of some style or language:
Highlight For | value | Attribute |
---|---|---|
HTML | html | language-html |
CSS | csh | language- |
JavaScript | js | language-js |
XML | xml | language-xml |
xHTML | xhtml | language-xhtml |
C | c | language-c |
C++ | cpp | language-cpp |
C# | cs | language-cs |
PHP | php | Language-php |
Python | py | language-py |
Java | java | language-java |
Ruby | rb | language-rb |
Perl | perl | language-perl |