On 03/24/2011 10:09 PM, Jianing Yang wrote:
Hi, all

I've recently written a babel plugin which does syntax highlighting
using pygment.
However, I have to specify a '-f html' option every time I use it. It looks like


#+begin_src pygment :cmdline -l bash -O linenos -f html
exec 3<&0 # copies STDIN, it prevents 'read' stealing STDIN from '$command'
while read FN; do
   test -e "$FN" || rm -iv "$FN"<&3
done<  <(find . $level -type l)
#+end_src

Therefore, my question is that is there a way that a babel plugin can
be aware about the export
format? If there is, not only I can omit the '-f html' but it could
also support for other export format,
like latex, transparently.

In git pulls from within the last few weeks, see the variable:
org-export-current-backend

Does your pygment idea have any overlap with:
http://comments.gmane.org/gmane.emacs.orgmode/28420

Reply via email to