Code Highlighting Example
Minelienda comes with built in support for code highlighting using prism.js.
Code highlighting is easy with prism.js. Just add a 'language-xxxx' class withing the code tag as shown. 'xxxx' is the language used. For a full list of languages included within prism.js used in minelienda tumblr theme see below.
Note: always use the code tag within a 'pre' tag for the highlighting to work.
<pre> <code class="language-xxxx"> code comes here </code> </pre>
To add line numbers simply add the class "line-numbers" to your pre tag as shown below:
<pre class="line-numbers"> <code class="language-xxxx"> code comes here </code> </pre>
Example (language-css):
p{color:blue;}
Languages Supported by Prism.js' current version used with minlineda:
Markup
Twig
CSS
CSS Extras
C-like
Eiffel
JavaScript
Java
PHP
PHP Extras
CoffeeScript
Sass (Scss)
Bash
C
C++
Python
SQL
Groovy
HTTP
Ruby
Rip
Gherkin
C#
Go
NSIS
ASP.NET (C#)
Scala
Haskell
Swift
Objective-C
AutoHotkey
Ini
LaTeX
Apache Configuration
Git
Scheme
nasm
Perl
Handlebars
MATLAB
Less
R
LOLCODE
Fortran
Erlang
Haml
Jade
Pascal
AppleScript
Rust
Dart








