Python highlighting

Add the .python class to the <code> class to highlight Python code.

def fib(n): 
a, b = 0, 1 
while a < n: 
	print(a, end=' ') 
	a, b = b, a + b
print('')
fib(1000)

CSS highlighting

Add the .css class to the <code> class to highlight CSS code.

.b-w-0 { 
  border-width: 0px;
}
.b-w-1 { 
  border-width: 1px;
}
.b-w-2 { 
  border-width: 2px;
}

Java highlighting

Add the .java class to the <code> class to highlight Java code.

public class Java {
	public static void main(String[] args) {
		System.out.println("Hello World");
	}
}

HTML highlighting

Add the .html class to the <code> class to highlight HTML code.

<div class="container-fluid">
    <div class="row m-b-20">
        <div class="col-md-1">.col-md-1</div>
        <div class="col-md-1">.col-md-1</div>
        <div class="col-md-1">.col-md-1</div>
        <div class="col-md-1">.col-md-1</div>
        <div class="col-md-1">.col-md-1</div>
        <div class="col-md-1">.col-md-1</div>
        <div class="col-md-1">.col-md-1</div>
        <div class="col-md-1">.col-md-1</div>
        <div class="col-md-1">.col-md-1</div>
        <div class="col-md-1">.col-md-1</div>
        <div class="col-md-1">.col-md-1</div>
        <div class="col-md-1">.col-md-1</div>
    </div>
</div>

Ruby highlighting

Add the .ruby class to the <code> class to highlight Ruby code.

i = 0
numbers = []
while i < 6 
	puts "At the top i is #{i}" 
	numbers.push(i)
	i += 1 
	puts " Numbers now: ", numbers 
	puts "At the bottom i is #{i}"
end 
puts "The numbers: " # remember you can write this 2 other ways?
numbers.each {
	|num| puts num
}

Javascript highlighting

Add the .javascript class to the <code> class to highlight Javascript code.

const fs = require('fs'); fs.unlinkSync('/tmp/hello');
console.log('successfully deleted /tmp/hello');
fs.rename('/tmp/hello', '/tmp/world', (err) => { 
	if (err) 
		throw m-b-20 err;
	console.log('renamed complete');
});
fs.stat('/tmp/world', (err, stats) => { 
	if (err) 
		throw m-b-20 err; 
	console.log(`stats: ${JSON.stringify(stats)}`);
});

PHP highlighting

Add the .php class to the <code> class to highlight PHP code.

<?php class Idea extends Angular { /**
* Dreaming of something interesting?
*
* @with  HTML and PHP
*/
	public function create()
	{
		echo "Hello world!";
	} 
}