The Housebuilder
Feb 10, 2013 • 1 min read

Code Snippets

Whenever you need to post a code snippet, use the liquid tags hilight and endhilight.

like this:

nav a:hover {
  color: rgba(0,0,0,.72);
}
nav a.current {
  color: rgba(0, 0, 0, .72)
}
.subtitle {
  margin: 30px 0;
}

You can also add line numbers by setting linenos. Like in this example:

 1 #!/bin/bash
 2 
 3 ###### CONFIG
 4 ACCEPTED_HOSTS="/root/.hag_accepted.conf"
 5 BE_VERBOSE=false
 6 
 7 if [ "$UID" -ne 0 ]
 8 then
 9  echo "Superuser rights required"
10  exit 2
11 fi
12 
13 genApacheConf(){
14  echo -e "# Host ${HOME_DIR}$1/$2 :"
15 }

Note that when you try to copy this code block the line numbers will be copied too.

Post by: Housebuiler