"Martin G. Skjæveland" <mart...@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
* 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
_______________________________________________ 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