Highlight Github

If you put a lot of code sample in your projects this will simplify things by using the new content-adaptors feature to display code directly from github.

Joe Mooring posted this highlight-github jawn and it looks nifty!

It allows you to place code on your website directly from your github repo. This is an example from linux…

{{< highlight-github 
  owner=torvalds 
  repo=linux 
  path=kernel/time/time.c
  lines=55-73
  lang=c
  hl_lines=67-70
  linenos=false
  showlink=false
  branch=b73f0c8f4ba810cd753031d18f4fab83bd9ac58f
>}}
#ifdef __ARCH_WANT_SYS_TIME
  
  /*
   * sys_time() can be implemented in user-level using
   * sys_gettimeofday().  Is this for backwards compatibility?  If so,
   * why not move it into the appropriate arch directory (for those
   * architectures that need it).
   */
  SYSCALL_DEFINE1(time, time_t __user *, tloc)
  {
  	time_t i = get_seconds();
  
  	if (tloc) {
  		if (put_user(i,tloc))
  			return -EFAULT;
  	}
  	force_successful_syscall_return();
  	return i;
  }