From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Re: How to customize the org-mode's BEGIN_SRC HTML output Date: Wed, 25 Aug 2010 09:19:10 +0100 Message-ID: <87iq2zumtd.wl%ucecesf@ucl.ac.uk> References: <87bp8rwh8n.fsfhello@somewhere.com> Reply-To: Eric S Fraga Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Wed_Aug_25_09:19:10_2010-1" Return-path: Received: from [140.186.70.92] (port=42948 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OoBCZ-0003eM-9L for emacs-orgmode@gnu.org; Wed, 25 Aug 2010 04:19:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OoBCX-0005Uf-Ve for emacs-orgmode@gnu.org; Wed, 25 Aug 2010 04:19:19 -0400 Received: from vscane-a.ucl.ac.uk ([144.82.108.41]:65196) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OoBCX-0005US-PE for emacs-orgmode@gnu.org; Wed, 25 Aug 2010 04:19:17 -0400 In-Reply-To: <87bp8rwh8n.fsfhello@somewhere.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rafael Cc: emacs-orgmode@gnu.org --Multipart_Wed_Aug_25_09:19:10_2010-1 Content-Type: text/plain; charset=US-ASCII On Tue, 24 Aug 2010 21:36:40 -0500, Rafael wrote: > > Benjamin Beckwith writes: > > > Hi, I also was interested in posting these blocks (through org2blog in > > wordpress). The code I posted below is added to > > 'org-export-preprocess-hooks' where it looks for BEGIN_SRC blocks as > > well as ':' blocks of code. > > > > In the case of BEGIN_SRC blocks, I add a header option, :syntaxhl where > > I can pass in additional settings to the syntaxhighlighter code. > > > > The code below uses Wordpress shortcodes, but I am sure that you can > > adapt for your own purposes. > > Thanks! that seems to almost work for me, if I replace your penultimate > line: > > > (concat "\n\n[" lang syntaxhl "]\n" body "[/" lang "]\n") > > by > > (concat "\n\n[sourcecode language=\"" lang syntaxhl "\"]\n" > body "[/sourcecode]\n") > > but then the line breaks are lost, and the latex exporter tries to be > too smart and replace the code.. Please see [...] Actually, I lose the line breaks with the original version as well. --Multipart_Wed_Aug_25_09:19:10_2010-1 Content-Type: text/plain; charset=US-ASCII -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D --Multipart_Wed_Aug_25_09:19:10_2010-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Multipart_Wed_Aug_25_09:19:10_2010-1--