From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: org-babel-tangle xml text Date: Tue, 03 Nov 2009 09:18:34 -0700 Message-ID: References: <4AF0493E.3010602@ifi.uio.no> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N5M5k-0003vF-Et for emacs-orgmode@gnu.org; Tue, 03 Nov 2009 11:18:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N5M5f-0003uf-AE for emacs-orgmode@gnu.org; Tue, 03 Nov 2009 11:18:43 -0500 Received: from [199.232.76.173] (port=42065 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5M5f-0003uc-75 for emacs-orgmode@gnu.org; Tue, 03 Nov 2009 11:18:39 -0500 Received: from mail-pz0-f192.google.com ([209.85.222.192]:58002) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N5M5e-0003A3-PR for emacs-orgmode@gnu.org; Tue, 03 Nov 2009 11:18:38 -0500 Received: by pzk30 with SMTP id 30so4309525pzk.24 for ; Tue, 03 Nov 2009 08:18:37 -0800 (PST) In-Reply-To: <4AF0493E.3010602@ifi.uio.no> ("Martin G. =?utf-8?Q?Skj=C3=A6?= =?utf-8?Q?veland=22's?= message of "Tue, 03 Nov 2009 16:16:14 +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: =?utf-8?Q?Martin_G=2E_Skj=C3=A6veland?= Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "Martin G. Skj=C3=A6veland" 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 --=-=-= Content-Disposition: inline; filename=xml-and-n3.org * 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 #+end_src #+begin_src n3 :tangle example n3 stuff #+end_src --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --=-=-=--