Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-09-01 Thread Puneeth
Rafael, This has been Done. Happy Blogging, Puneeth On Sun, Aug 29, 2010 at 11:48 PM, Rafael rvf0...@gmail.com wrote: Now, in case you wanted to have some more feature requests, ;-), here they are: 1. Making an option to disable the inclusion of ':light=true'. 2. Note that Wordpress also

Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-29 Thread Puneeth
On Wed, Aug 25, 2010 at 6:21 PM, Puneeth puncha...@gmail.com wrote: 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.. The line breaks being stripped off is due to code

Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-25 Thread Eric S Fraga
On Tue, 24 Aug 2010 21:36:40 -0500, Rafael rvf0...@gmail.com wrote: Benjamin Beckwith bnbeckw...@gmail.com 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

Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-25 Thread Puneeth
Hi All, I'm not sure if I should've jumped into the discussion much earlier, but anyways, On Wed, Aug 25, 2010 at 5:53 PM, Rafael rvf0...@gmail.com wrote: I think Benjamin means that he has customized this http://en.support.wordpress.com/shortcodes/ so that his code works directly. But it

Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-25 Thread Eric S Fraga
On Wed, 25 Aug 2010 18:21:22 +0530, Puneeth puncha...@gmail.com wrote: Hi All, I'm not sure if I should've jumped into the discussion much earlier, but anyways, On Wed, Aug 25, 2010 at 5:53 PM, Rafael rvf0...@gmail.com wrote: I think Benjamin means that he has customized this

Re: [Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-25 Thread Benjamin Beckwith
Eric, I should mention that I am using the Syntaxhighlighter Evolved plugin for Wordpress. It allows shortcodes with just the language name. I probably should use the [sourcecode lang=...] variant instead. Maybe that is why my version did not work for you? My latest page created with my code

[Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-25 Thread Rafael
Puneeth puncha...@gmail.com writes: The line breaks being stripped off is due to code in org2blog. It has nothing to do with org-mode's export. Wordpress does not ignore linebreaks in the content, which looks very ugly for normal posts. Code in org2blog strips off the line breaks from the

[Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-25 Thread Andrei Jirnyi
On Mon, 23 Aug 2010 14:03:23 -0500, Erik Iverson wrote: post-process the html file generated by the export process, (there is probably a hook so you can do this automatically): apparently it's org-export-html-final-hook --aj ___ Emacs-orgmode

[Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-24 Thread Benjamin Beckwith
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

[Orgmode] Re: How to customize the org-mode's BEGIN_SRC HTML output

2010-08-24 Thread Benjamin Beckwith
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