Testing code highlighting with Highlight.js on PicoCMS
OK, this is just a test page to test code highlighting. This is provided by highlight.js. See bitsandpieces original theme's documentation. Note that I used a modified version fo bitsandpieces for my own needs.
This is a bash script:
#!/bin/sh
# A POSIX variable
OPTIND=1 # Reset in case getopts has been used previously in the shell.
# Initialize our own variables:
output_file=""
verbose=0
while getopts "h?vf:" opt; do
case "$opt" in
h|\?)
show_help
exit 0
;;
v) verbose=1
;;
f) output_file=$OPTARG
;;
esac
done
This is an objective-C snippet:
NSMutableString *myString = [NSMutableString stringWithString:@"ABC"];
NSString *anotherString = [myString copy];
[anotherString appendString:@"Test"];
This is another objective-C snippet:
NSMutableString *secondString = [NSMutableString stringWithString:@"ABC"];
NSString *anotherString = [secondString copy];
[anotherString appendString:@"Test"];
v4