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:30:26 +0100 Message-ID: <87hbijumal.wl%ucecesf@ucl.ac.uk> References: 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:30:26_2010-1" Return-path: Received: from [140.186.70.92] (port=47348 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OoBNR-0006sr-1N for emacs-orgmode@gnu.org; Wed, 25 Aug 2010 04:30:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OoBNP-0007PP-Vw for emacs-orgmode@gnu.org; Wed, 25 Aug 2010 04:30:32 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:61001) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OoBNP-0007P6-RK for emacs-orgmode@gnu.org; Wed, 25 Aug 2010 04:30:31 -0400 In-Reply-To: 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: Benjamin Beckwith Cc: emacs-orgmode@gnu.org --Multipart_Wed_Aug_25_09:30:26_2010-1 Content-Type: text/plain; charset=US-ASCII 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: --8<---------------cut here---------------start------------->8--- #+srcname: matlabblock #+begin_src matlab function y = f(x) x = 1989; y = (2010-x)^2; #+end_src --8<---------------cut here---------------end--------------->8--- 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? Thanks, eric --Multipart_Wed_Aug_25_09:30:26_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:30:26_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:30:26_2010-1--