From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?=22Martin_G=2E_Skj=E6veland=22?= Subject: org-babel-tangle xml text Date: Tue, 03 Nov 2009 16:16:14 +0100 Message-ID: <4AF0493E.3010602@ifi.uio.no> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N5L78-0004Ab-DL for emacs-orgmode@gnu.org; Tue, 03 Nov 2009 10:16:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N5L73-00048A-KH for emacs-orgmode@gnu.org; Tue, 03 Nov 2009 10:16:05 -0500 Received: from [199.232.76.173] (port=38407 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5L73-00047u-Dy for emacs-orgmode@gnu.org; Tue, 03 Nov 2009 10:16:01 -0500 Received: from mail-out1.uio.no ([129.240.10.57]:36713) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N5L72-0008QC-KK for emacs-orgmode@gnu.org; Tue, 03 Nov 2009 10:16:01 -0500 Received: from mail-mx2.uio.no ([129.240.10.30]) by mail-out1.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1N5L6y-0003mg-Rq for emacs-orgmode@gnu.org; Tue, 03 Nov 2009 16:15:56 +0100 Received: from 1x-193-157-199-139.uio.no ([193.157.199.139]) by mail-mx2.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1N5L6y-0002c9-I1 for emacs-orgmode@gnu.org; Tue, 03 Nov 2009 16:15:56 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi all, I am quite new to the wonderful world of org-mode and org-babel. Right now I am using org-mode to make exercises for a semantic web programming course. org-mode and its friends give me a efficient writing tool, a presentation tool, export for web, export for print and a literate programming tool. That's nice! But I have a question. I would like to include many code snippets written in RDF (XML/RDF, N3), which are languages not supported by org-babel [1], in my document, and I would like to use the "Edit the source code example at point in its native mode"-feature of org-mode and the tangle-feature of org-babel. Now I'm specifying the language as css (see below) since it is supported by org-babel and does not add any comments to output. This works for "tangling", but not for native editing. 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. Below is a sample of what I am currently using. Running org-babel-tangle gives me the correct foaf.rdf file. I would like to swap 'css' with 'xml' so that the code can be edited and understood as xml. #+SRCNAME: foaf-main #+BEGIN_SRC css :tangle foaf.rdf <> #+END_SRC #+SRCNAME: foaf-rel #+BEGIN_SRC css :tangle no #+END_SRC I hope this was clear -- and that someone can help. Thanks! Martin [1] http://orgmode.org/worg/org-contrib/babel/org-babel.php#reference-and-documentation