From: "Eric Schulte" <schulte.eric@gmail.com>
To: "Martin G. Skjæveland" <martige@ifi.uio.no>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-babel-tangle xml text
Date: Tue, 03 Nov 2009 09:18:34 -0700 [thread overview]
Message-ID: <m28wenbmzp.fsf@gmail.com> (raw)
In-Reply-To: <4AF0493E.3010602@ifi.uio.no> ("Martin G. Skjæveland"'s message of "Tue, 03 Nov 2009 16:16:14 +0100")
[-- Attachment #1: Type: text/plain, Size: 630 bytes --]
"Martin G. Skjæveland" <martige@ifi.uio.no> writes:
> Is there a way I can add xml and n3 to the list of supported
> languages? These languages does not need interpretation, so I'm
> thinking it should be quite easy to add. I have fumblingly tried
>
> (add-to-list 'org-babel-tangle-langs '("xml"))
>
> and
>
> (add-to-list 'org-babel-tangle-langs '("css" "xml"))
>
> but it as no effect.
>
Hi Martin,
The attached org-mode file contains instructions for adding xml and n3
to org-babel and org-babel-tangle. Note that there may be another step
if the major mode for n3 is not n3-mode. Best -- Eric
[-- Attachment #2: xml-and-n3.org --]
[-- Type: text/plain, Size: 738 bytes --]
* xml and n3
introduce org-babel to =xml= and =n3=
#+begin_src emacs-lisp :results silent
(org-babel-add-interpreter "xml")
(org-babel-add-interpreter "n3")
#+end_src
if say =n3= should be edited using =xml-mode=, then evaluate the
following adding this pair to =org-src-lang-modes=
#+begin_src emacs-lisp :results silent
(add-to-list 'org-src-lang-modes '("n3" . xml))
#+end_src
inform org-babel-tangle of their existence and file extensions
#+begin_src emacs-lisp :results silent
(add-to-list 'org-babel-tangle-langs '("xml" "xml" nil t))
(add-to-list 'org-babel-tangle-langs '("n3" "n3" nil t))
#+end_src
#+begin_src xml :tangle example
<first>
</first>
#+end_src
#+begin_src n3 :tangle example
n3 stuff
#+end_src
[-- Attachment #3: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
prev parent reply other threads:[~2009-11-03 16:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-03 15:16 org-babel-tangle xml text "Martin G. Skjæveland"
2009-11-03 16:18 ` Eric Schulte [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m28wenbmzp.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=martige@ifi.uio.no \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.