From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rafael Subject: Re: How to customize the org-mode's BEGIN_SRC HTML output Date: Wed, 25 Aug 2010 07:23:53 -0500 Message-ID: <871v9mx4me.fsfhello@somewhere.com> References: <87hbijumal.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=51324 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OoF1X-0002TN-2q for emacs-orgmode@gnu.org; Wed, 25 Aug 2010 08:24:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OoF1V-0003Tm-Qc for emacs-orgmode@gnu.org; Wed, 25 Aug 2010 08:24:11 -0400 Received: from lo.gmane.org ([80.91.229.12]:43101) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OoF1V-0003TX-FD for emacs-orgmode@gnu.org; Wed, 25 Aug 2010 08:24:09 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OoF1S-0000uV-O4 for emacs-orgmode@gnu.org; Wed, 25 Aug 2010 14:24:06 +0200 Received: from 187.159.62.29 ([187.159.62.29]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Aug 2010 14:24:06 +0200 Received: from rvf0068 by 187.159.62.29 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Aug 2010 14:24:06 +0200 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: emacs-orgmode@gnu.org Eric S Fraga writes: > On Tue, 24 Aug 2010 23:32:01 -0400, Benjamin Beckwith wrote: >> >> Rafael, >> >> I had my shortcodes setup to accept the language directly. Your change >> should work as you indicated. I have an additional fix to my code that >> should behave better for you. I add a property, org-protected, that >> prevents processing of the text. >> >> I tried it on your code blocks by calling org-export directly (C-c C-e) >> and then choosing 'H' to see the html in a buffer. This really helps >> with debug. >> >> Fixed code follows > > [...] > > Benjamin, > > can you show us a simple example blog entry that works with this? I > have tried and, with your version, I do not get the source code plugin > in Wordpress invoked. If I use Rafael's change, the plugin does get > used. Also, both your code and Rafael's cause all linebreaks in the > code to disappear. > > For instance, with some simple =MATLAB= code: > > #+srcname: matlabblock > #+begin_src matlab > function y = f(x) > x = 1989; > y = (2010-x)^2; > #+end_src > > your most recent code generates > > ,---- > |

[matlab] function y = f(x) x = 1989; y = (2010-x)^2; [/matlab] > `---- > > which is not something wordpress seems to understand? > I think Benjamin means that he has customized this http://en.support.wordpress.com/shortcodes/ so that his code works directly. But it is not clear to me which changes he had to do for that, nor if that is available to free wordpress users... Oh, and by the way, with Org-mode version 7.01h I concur with Eric in that I unfortunately still lose the linebreaks and get LaTeX code modified with Benjamin's new version..