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.