From: tsd@tsdye.com (Thomas S. Dye)
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: babel "language" for conf-mode?
Date: Mon, 06 Oct 2014 20:09:59 -1000 [thread overview]
Message-ID: <m2vbnwl8aw.fsf@tsdye.com> (raw)
In-Reply-To: <8738b01lth.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Tue, 07 Oct 2014 13:38:18 +0800")
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 <eric@ericabrahamsen.net> 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
next prev parent reply other threads:[~2014-10-07 6:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-07 5:38 babel "language" for conf-mode? Eric Abrahamsen
2014-10-07 6:09 ` Thomas S. Dye [this message]
2014-10-07 7:07 ` Eric Abrahamsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2vbnwl8aw.fsf@tsdye.com \
--to=tsd@tsdye.com \
--cc=emacs-orgmode@gnu.org \
--cc=eric@ericabrahamsen.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).