emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rafael <rvf0068@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: How to customize the org-mode's BEGIN_SRC HTML output
Date: Wed, 25 Aug 2010 07:23:53 -0500	[thread overview]
Message-ID: <871v9mx4me.fsfhello@somewhere.com> (raw)
In-Reply-To: 87hbijumal.wl%ucecesf@ucl.ac.uk

Eric S Fraga <ucecesf@ucl.ac.uk> writes:

> On Tue, 24 Aug 2010 23:32:01 -0400, Benjamin Beckwith <bnbeckwith@gmail.com> 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
>
> ,----
> | <p>    [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.. 

  reply	other threads:[~2010-08-25 12:24 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-25  3:32 How to customize the org-mode's BEGIN_SRC HTML output Benjamin Beckwith
2010-08-25  8:30 ` Eric S Fraga
2010-08-25 12:23   ` Rafael [this message]
2010-08-25 12:51     ` Puneeth
2010-08-25 13:15       ` Eric S Fraga
2010-08-26  1:54       ` Rafael
2010-08-29  9:37       ` Puneeth
2010-08-29 18:18         ` Rafael
2010-09-01 10:42           ` Puneeth
2010-09-01 14:38             ` Rafael
2010-08-29 19:28         ` Eric S Fraga
2010-08-25 14:49   ` Benjamin Beckwith
  -- strict thread matches above, loose matches on Subject: below --
2010-08-24 13:39 Benjamin Beckwith
2010-08-25  2:36 ` Rafael
2010-08-23  9:41 卓强 Will Zhuo
2010-08-23 19:03 ` Erik Iverson
2010-08-26  3:22   ` Andrei Jirnyi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871v9mx4me.fsfhello@somewhere.com \
    --to=rvf0068@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).