Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
require 'rubygems'
require 'redcarpet'
require 'pygments.rb'
class HTMLwithPygments < Redcarpet::Render::HTML
def block_code(code, language)
Pygments.highlight(code, :lexer => language.to_sym, :options => {
:encoding => 'utf-8'
})
@codetrail
codetrail / index.html
Created August 22, 2012 15:02 — forked from desandro/index.html
A web page created at CodePen.io.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Google WebFont Loader test &middot; CodePen</title>
<!--
Copyright (c) 2012 David DeSandro, http://codepen.io/desandro
Permission is hereby granted, free of charge, to any person obtaining