[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output
From: |
Eric S Fraga |
Subject: |
Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output |
Date: |
Wed, 25 Aug 2010 09:30:26 +0100 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.2 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
On Tue, 24 Aug 2010 23:32:01 -0400, Benjamin Beckwith <address@hidden> 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
,----
| <p> [matlab] function y = f(x) x = 1989; y = (2010-x)^2; [/matlab]
`----
which is not something wordpress seems to understand?
Thanks,
eric
--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D
- [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output, Benjamin Beckwith, 2010/08/24
- [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output, Benjamin Beckwith, 2010/08/24
- Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output,
Eric S Fraga <=
- [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output, Rafael, 2010/08/25
- Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output, Puneeth, 2010/08/25
- Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output, Eric S Fraga, 2010/08/25
- [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output, Rafael, 2010/08/25
- Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output, Puneeth, 2010/08/29
- [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output, Rafael, 2010/08/29
- Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output, Eric S Fraga, 2010/08/29
- Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output, Benjamin Beckwith, 2010/08/25