[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:19:10 +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 21:36:40 -0500, Rafael <address@hidden> wrote:
>
> Benjamin Beckwith <address@hidden> 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.
--
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, 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/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