From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: babel "language" for conf-mode? Date: Mon, 06 Oct 2014 20:09:59 -1000 Message-ID: References: <8738b01lth.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49229) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbNya-00007G-6N for emacs-orgmode@gnu.org; Tue, 07 Oct 2014 02:10:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbNyU-0003Ga-9B for emacs-orgmode@gnu.org; Tue, 07 Oct 2014 02:10:24 -0400 Received: from gproxy4-pub.mail.unifiedlayer.com ([69.89.23.142]:37560) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1XbNyU-0003GC-0J for emacs-orgmode@gnu.org; Tue, 07 Oct 2014 02:10:18 -0400 In-Reply-To: <8738b01lth.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Tue, 07 Oct 2014 13:38:18 +0800") 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: Eric Abrahamsen Cc: emacs-orgmode@gnu.org Aloha Eric, My guess is that you'll need to define conf-unix as a language. It might be easy since evaluation isn't needed. See, http://orgmode.org/w/worg.git/blob/HEAD:/org-contrib/babel/ob-template.el All the best, Tom Eric Abrahamsen writes: > I'm doing a blog post on various computer configuration stuff, including > lengthy excerpts from configuration files. It would be kind of nice to > export the HTML so that the :htmlize-source option also recognized these > chunks, and highlighted them correctly. So instead of wrapping the > excerpts in > > #+BEGIN_EXAMPLE > > I could wrap them in > > #+BEGIN_SOURCE conf-unix > > And get highlighting a la conf-unix-mode. > > It's not quite a babel "language", since evaluation wouldn't do > anything, but is there a way to just get the highlighting? > > Thanks! > Eric > > > -- Thomas S. Dye http://www.tsdye.com