emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: Charles Philip Chan <cpchan@bell.net>
Cc: Org-mode <emacs-orgmode@gnu.org>, schulte eric <schulte.eric@gmail.com>
Subject: Re: Exporting xml and html code with syntax highlight
Date: Fri, 31 Aug 2012 08:13:17 +0200	[thread overview]
Message-ID: <87wr0fwpvm.fsf@altern.org> (raw)
In-Reply-To: <BLU0-SMTP20011E151BE1F2A83E12EFBBA60@phx.gbl> (Charles Philip Chan's message of "Fri, 31 Aug 2012 01:46:21 -0400")

Hi Charles,

Charles Philip Chan <cpchan@bell.net> writes:

> Tonight I had a need to export some xml code with syntax highlight. I
> figured that the best way to do it is to modify ob-css.el (by a simple
> search and replace). To my delight, it work, so I did one for html
> also. I hope people will find them useful.

Thanks for exploring/adding this!

Since the functions do strictly nothing, we should have a way to
add them dynamically, without requiring a new ob-* file.  This would 
be useless for languages you only want to tangle, like XML and HTML.

Something like

(defun org-babel-support-lang (lang)

   (defvar org-babel-default-header-[lang] nil)
   (defun org-babel-execute:[lang] (body params)
   etc ...)

Eric, what do you think?

-- 
 Bastien

  reply	other threads:[~2012-08-31  6:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-31  5:46 Exporting xml and html code with syntax highlight Charles Philip Chan
2012-08-31  6:13 ` Bastien [this message]
2012-08-31  7:10   ` Charles Philip Chan

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=87wr0fwpvm.fsf@altern.org \
    --to=bzg@altern.org \
    --cc=cpchan@bell.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \
    /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).