I just installed the crayon code highlight plugin from the link below, man you got to give credit where credit is due. This plugin was simple to install on my site and it has endless code highlighting capabilities.
Crayon Highlight
OMG: This is some pretty code highlighting if I must say so myself. Have a look:
PYTHON:
1 2 3 4 5 6 7 8 9 10 11 12 |
[jralph@jr-sandbox python_scripts]$ cat py_function_learning.py #!/usr/bin/python # playing with procedures returning values def add_procedure(a,b): foo = a + b def add_function(a,b): return a + b print("Three plus Five is: %d" % add_function(3,5)) |
PHP:
1 2 3 4 5 6 |
<?php echo preg_replace_callback('~-([a-z])~', function ($match) { return strtoupper($match[1]); }, 'hello-world'); // outputs helloWorld ?> |
C++:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#include <iostream> using namespace std; void HelloWorld() { cout << "Hello, World" << endl; } int main() { HelloWorld(); return 0; } |
BASH:
1 2 3 4 5 |
#!/bin/bash # declare STRING variable STRING="Hello World" #print variable on a screen echo $STRING |
PERL:
1 2 3 4 5 6 7 8 9 10 |
#!/usr/bin/perl # # The traditional first program. # Strict and warnings are recommended. use strict; use warnings; # Print a message. print "Hello, World!\n"; |
JAVA:
1 2 3 4 5 6 7 8 |
public class HelloWorld { public static void main(String[] args) { // Prints "Hello, World" to the terminal window. System.out.println("Hello, World"); } } |