From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Alexander Subject: Introducing Octopress Exporter Date: Wed, 1 Aug 2012 19:21:55 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwiEp-00043U-K4 for emacs-orgmode@gnu.org; Wed, 01 Aug 2012 19:22:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwiEo-00009b-Gz for emacs-orgmode@gnu.org; Wed, 01 Aug 2012 19:21:59 -0400 Received: from caiajhbdcbef.dreamhost.com ([208.97.132.145]:38380 helo=homiemail-a89.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwiEo-00006i-6i for emacs-orgmode@gnu.org; Wed, 01 Aug 2012 19:21:58 -0400 Received: from homiemail-a89.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a89.g.dreamhost.com (Postfix) with ESMTP id 78F2E31805C for ; Wed, 1 Aug 2012 16:21:56 -0700 (PDT) Received: from mail-ob0-f169.google.com (mail-ob0-f169.google.com [209.85.214.169]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: tomalexander@paphus.com) by homiemail-a89.g.dreamhost.com (Postfix) with ESMTPSA id 5784F318058 for ; Wed, 1 Aug 2012 16:21:56 -0700 (PDT) Received: by obhx4 with SMTP id x4so15564367obh.0 for ; Wed, 01 Aug 2012 16:21:55 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I recently started using Octopress since its a great platform for programmers to blog. Since the posts are written in HTML, it was easy to use Org-Mode but once I got to code blocks I noticed that there was no highlighting. I decided to modify the HTML exporter so that code blocks were exported in the format described at http://octopress.org/docs/plugins/codeblock/ . My new exporter is located on github at https://github.com/craftkiller/orgmode-octopress and I welcome anyone to help improve it (for example, right now the body-only tag seems to fail since a table of contents gets exported). The important changes are all at the bottom of the file. Basically I just grab the text before the html preprocessor gets to it and go through line-by-line to find the code blocks. I wrote some information of setting this up so you can blog with org-mode at http://blog.paphus.com/blog/2012/08/01/introducing-octopress-blogging-for-org-mode/ . Thank you guys for all that you do! Org-mode has made my life significantly easier. Heres hoping this makes some blogger's life easier. -- Tom Alexander HS - Secretary Alpha Sigma Phi; Beta Psi Chapter Rensselaer Polytechnic Institute Class of 2013