Skip to content

Instantly share code, notes, and snippets.

@fallenhitokiri
Created May 6, 2011 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fallenhitokiri/958886 to your computer and use it in GitHub Desktop.
Save fallenhitokiri/958886 to your computer and use it in GitHub Desktop.
sample post for s3b

Title=Coding Example Created=2011-05-02 Categories=coding Tags=python,html -----#####----- so let us look at syntax highlighting and see what will happen after I added pygments

import markdown2

from pygments.lexers import guess_lexer
from pygments import highlight
from pygments.lexers import get_lexer_by_name
from pygments.formatters import HtmlFormatter

import config

def markup(content):
	'''run content through pygments and markdown'''
	content = markdown2.markdown(content)

	return content

and we will see fantastic results!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment