Skip to content
Browse files

DOC: Using babel source blocks for sourcecode shortcode export.

  • Loading branch information...
1 parent 83e6eba commit fa044744cb4816be555b489e2f921d5b03246d62 @punchagan committed Feb 11, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 README.org
View
11 README.org
@@ -139,6 +139,17 @@
time-stamps are used.
- The headline is used as the title of the post. But, =TITLE= can
be used to use a different title.
+*** Posting source code blocks
+ Babel source blocks or example code is automatically posted in
+ =<pre>= tags. You can ask =org2blog= to use Wordpress's
+ sourcecode shortcode blocks. To use this, you need to set the
+ variable =org2blog/wp-use-sourcecode-shortcode=. Wordpress's
+ sourcecode shortcode blocks can be given various [[http://en.support.wordpress.com/code/posting-source-code/#configuration-parameters][configuration
+ parameters]]. These can be passed to the exported sourcecode
+ shortcode blocks, by passing them to the babel blocks using
+ =:syntaxhl= parameter. You could also modify the default
+ arguments passed to sourcecode shortcode blocks by customizing the
+ =org2blog/wp-sourcecode-default-params= variable.
*** Delete an entry or a page
- If you are in the buffer of the entry/page, with =#+POSTID=
present on the page, use:

0 comments on commit fa04474

Please sign in to comment.
Something went wrong with that request. Please try again.