From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Subject: XML src block syntax highlighting Date: Thu, 25 Apr 2013 11:57:49 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----4NCFAU6VCJEHK3FB38VBIY4WIBHM8F" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVIwO-0000TI-N2 for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 05:58:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVIwJ-0004QN-Hx for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 05:58:12 -0400 Received: from v2201111105296627.yourvserver.net ([46.38.233.178]:41460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVIwJ-0004Os-BU for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 05:58:07 -0400 Received: from tmo-096-109.customers.d1-online.com ([80.187.96.109] helo=[10.37.211.23]) by v2201111105296627.yourvserver.net with esmtpsa (TLS1.0:RSA_ARCFOUR_MD5:16) (Exim 4.76) (envelope-from ) id 1UVIw8-0006cT-3C for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 11:58:00 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org ------4NCFAU6VCJEHK3FB38VBIY4WIBHM8F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Hi, I'm in the process of writing documentation for a simple HTTP based AP= I that returns responses as XML=2E The included response examples are blo= cks of the form: #+BEGIN_SRC xml :exports code =2E=2E=2E #+END_SRC I have org-= src-fontify-natively =3D and it works for other code, but xml is fontified = as a fundamental buffer, not like nxml-mode shows the block contents=2E nxm= l-mode /is/ used when I use C-c ' to edit the contents=2E Do I miss someth= ing in my setup to let org-mode use nxml-mode for xml src-blocks? kind reg= ards, Tom -- xmpp://tom@sec=2Egoochesa=2Ede http://www=2Egoochesa=2Ede ------4NCFAU6VCJEHK3FB38VBIY4WIBHM8F Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi,

I'm in the process of writing documenta= tion for a simple HTTP based API that returns responses as XML=2E

= The included response examples are blocks of the form:

#+BEGIN_SR= C xml :exports code
<?xml version=3D"1=2E0" encoding=3D&qu= ot;utf-8"?>
<validxml>
=2E=2E=2E
</validxml&= gt;
#+END_SRC

I have org-src-fontify-natively =3D and it works= for other code, but xml is fontified as a fundamental buffer, not like nxm= l-mode shows the block contents=2E nxml-mode /is/ used when I use C-c '= to edit the contents=2E

Do I miss something in my setup to let or= g-mode use nxml-mode for xml src-blocks?

kind regards,
Tom --
xmpp://tom@sec=2Egoochesa=2Ede
http://www=2Egoochesa=2Ede ------4NCFAU6VCJEHK3FB38VBIY4WIBHM8F-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: XML src block syntax highlighting Date: Thu, 25 Apr 2013 16:24:49 +0200 Message-ID: <20130425142449.GC18965@kuru.dyndns-at-home.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVN6Z-0005WL-A9 for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 10:25:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVN6U-0004gq-OS for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 10:24:59 -0400 Received: from mail-ea0-x22f.google.com ([2a00:1450:4013:c01::22f]:45106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVN6U-0004gb-El for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 10:24:54 -0400 Received: by mail-ea0-f175.google.com with SMTP id f15so1246916eak.34 for ; Thu, 25 Apr 2013 07:24:53 -0700 (PDT) Received: from kuru.dyndns-at-home.com ([2001:610:120:3000:f2de:f1ff:fe37:c76c]) by mx.google.com with ESMTPSA id s47sm10621120eeg.8.2013.04.25.07.24.51 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 25 Apr 2013 07:24:52 -0700 (PDT) Content-Disposition: inline In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Thu, Apr 25, 2013 at 11:57:49AM +0200, Tom wrote: > > #+BEGIN_SRC xml :exports code > > > ... > > #+END_SRC > > I have org-src-fontify-natively = and it works for other code, but xml > is fontified as a fundamental buffer, not like nxml-mode shows the > block contents. nxml-mode /is/ used when I use C-c ' to edit the > contents. Can you try the following: #+BEGIN_SRC nxml :exports code .. #+END_SRC As far as I know, the language is supposed to be the leading part of -mode. My information is a bit outdated, so I could be wrong. Hope this helps, -- Suvayu Open source is the future. It sets us free. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Subject: Re: XML src block syntax highlighting Date: Thu, 25 Apr 2013 17:03:37 +0200 Message-ID: <4ea5908a-9d65-47f6-8cef-3df73b3a0873@email.android.com> References: <20130425142449.GC18965@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVNi9-0005U4-T7 for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 11:03:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVNi4-0003i0-Qs for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 11:03:49 -0400 Received: from v2201111105296627.yourvserver.net ([46.38.233.178]:49811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVNi4-0003hV-Lh for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 11:03:44 -0400 In-Reply-To: <20130425142449.GC18965@kuru.dyndns-at-home.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Suvayu Ali , emacs-orgmode@gnu.org Hi, Many thanks for your reply=2E Suvayu Ali schrieb: >On Thu, Apr 25, 2013 at 11:57:49AM +0200, Tom wrote: >> = >> #+BEGIN_SRC xml :exports code >> >> >> =2E=2E=2E >> >> #+END_SRC >> >> I ha= ve org-src-fontify-natively =3D and it works for other code, but >xml >> is= fontified as a fundamental buffer, not like nxml-mode shows the >> block c= ontents=2E nxml-mode /is/ used when I use C-c ' to edit the >> contents=2E = > >Can you try the following: > > #+BEGIN_SRC nxml :exports code > =2E= =2E > #+END_SRC > >As far as I know, the language is supposed to be the le= ading part of >-mode=2E My information is a bit outdated, so I could= be wrong=2E > >Hope this helps, I should have written that in my OP: I tr= ied that to no avail=2E I also tried (add-to-list 'org-src-lang-modes '= ("xml" =2E nxml)) Without success=2E Regards, Tom -- xmpp://tom@sec=2Eg= oochesa=2Ede From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: XML src block syntax highlighting Date: Fri, 26 Apr 2013 08:50:36 +0200 Message-ID: <20130426065036.GB2769@kuru.dyndns-at-home.com> References: <20130425142449.GC18965@kuru.dyndns-at-home.com> <4ea5908a-9d65-47f6-8cef-3df73b3a0873@email.android.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:32865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVcUW-00049Z-Hx for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 02:50:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVcUT-0003Cx-MC for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 02:50:44 -0400 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:44675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVcUT-0003Cl-Fc for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 02:50:41 -0400 Received: by mail-wi0-f181.google.com with SMTP id c10so227967wiw.8 for ; Thu, 25 Apr 2013 23:50:40 -0700 (PDT) Content-Disposition: inline In-Reply-To: <4ea5908a-9d65-47f6-8cef-3df73b3a0873@email.android.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Tom Cc: emacs-orgmode@gnu.org On Thu, Apr 25, 2013 at 05:03:37PM +0200, Tom wrote: > Suvayu Ali schrieb: > > >On Thu, Apr 25, 2013 at 11:57:49AM +0200, Tom wrote: > >> > >> #+BEGIN_SRC xml :exports code > >> > >> > >> ... > >> > >> #+END_SRC > >> > >> I have org-src-fontify-natively = and it works for other code, but > >xml > >> is fontified as a fundamental buffer, not like nxml-mode shows the > >> block contents. nxml-mode /is/ used when I use C-c ' to edit the > >> contents. > > > >Can you try the following: > > > > #+BEGIN_SRC nxml :exports code > > .. > > #+END_SRC > > > >As far as I know, the language is supposed to be the leading part of > >-mode. My information is a bit outdated, so I could be wrong. > > I should have written that in my OP: I tried that to no avail. > > I also tried > > (add-to-list 'org-src-lang-modes '("xml" . nxml)) Sorry, I cannot reproduce this. I tried (setq org-src-fontify-natively t) and both of the following work for me. #+BEGIN_SRC xml :exports code .. #+END_SRC #+BEGIN_SRC nxml :exports code .. #+END_SRC Maybe it is your configuration? Did you try a binary search on it? Comment out half of it at a time and you should be able to find the problem lines in no time! GL, -- Suvayu Open source is the future. It sets us free. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Subject: Re: XML src block syntax highlighting Date: Fri, 26 Apr 2013 09:07:08 +0200 Message-ID: <5b4b19b2-b499-493e-8b59-d18320e57c6b@email.android.com> References: <20130425142449.GC18965@kuru.dyndns-at-home.com> <4ea5908a-9d65-47f6-8cef-3df73b3a0873@email.android.com> <20130426065036.GB2769@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVckX-0005Kq-Iy for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 03:07:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVckU-0000R2-9z for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 03:07:17 -0400 Received: from v2201111105296627.yourvserver.net ([46.38.233.178]:56572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVckU-0000Qs-3z for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 03:07:14 -0400 In-Reply-To: <20130426065036.GB2769@kuru.dyndns-at-home.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Suvayu Ali Cc: emacs-orgmode@gnu.org Hi Suvayu, Suvayu Ali schrieb: >On Thu= , Apr 25, 2013 at 05:03:37PM +0200, Tom wrote: >> Suvayu Ali schrieb: >> >> >On Thu, Apr 25, 2013 at 11:57:49AM +0200= , Tom wrote: >> >> >> >> #+BEGIN_SRC xml :exports code >> >> >> >> >> >> =2E=2E=2E >> >> >> >> #+END_SRC >> >> >> >> I have org-src-fontify-natively =3D a= nd it works for other code, but >> >xml >> >> is fontified as a fundamental= buffer, not like nxml-mode shows the >> >> block contents=2E nxml-mode /is= / used when I use C-c ' to edit the >> >> contents=2E >> > >> >Can you try = the following: >> > >> > #+BEGIN_SRC nxml :exports code >> > =2E=2E >> = > #+END_SRC >> > >> >As far as I know, the language is supposed to be the = leading part of >> >-mode=2E My information is a bit outdated, so I = could be wrong=2E >> >> I should have written that in my OP: I tried that = to no avail=2E >> >> I also tried >> >> (add-to-list 'org-src-lang-modes = '("xml" =2E nxml)) > >Sorry, I cannot reproduce this=2E I tried (setq org-= src-fontify-natively >t) and both of the following work for me=2E > > #+BE= GIN_SRC xml :exports code > =2E=2E > #+END_SRC > > #+BEGIN_SRC nxml :e= xports code > =2E=2E > #+END_SRC > >Maybe it is your configuration? Di= d you try a binary search on it? >Comment out half of it at a time and you = should be able to find the >problem lines in no time! Many thanks for chec= king - I found thw culprit=2E An old nxml version I installed agea ago via = ELPA w > >GL, -- Diese Nachricht wurde von meinem Android-Mobiltelefon mi= t K-9 Mail gesendet=2E