From: Jambunathan K <email@example.com>
Cc: emacs-orgmode <firstname.lastname@example.org>
Subject: Re: HTML Syntax Highlighting Questions
Date: Mon, 30 May 2011 07:02:51 +0530 [thread overview]
Message-ID: <email@example.com> (raw)
In-Reply-To: <BANLkTi=887EFMtRg6jQDq-AmZyfPN28NWw@mail.gmail.com> (Avdi Grimm's message of "Sun, 29 May 2011 20:50:05 -0400")
Avdi Grimm <firstname.lastname@example.org> writes:
> I feel like this is a stupid question, but I'm having trouble finding
> the info I need.
> How do I control syntax highlighting in HTML export? Specifically, how can I:
> A. Disable syntax highlighting entirely
Remove htmlize from your load path.
> B. Switch from inline colors to semantic tagging that I can style with
> a stylesheet? I could swear that I've seen instructions about this
> somewhere in the past.
As part of my odt exporter work, I would very much want to have the
exported code snippets marked up, well, differently. i.e., I need
flexibility in *choosing* what the tag ought to be - what you call as
semantic tagging. To illustrate, what gets emitted as <span>...</span>
in html export should in it's odt equivalent be emitted as
I have emphasized it elsewhere, I think Org should use htmlfontify and
not htmlize. The principle is that something that is right within the
core should be given preference to that which is "3 rd
party". Furthermore, htmlfontify can generate htmlized source code that
is cross-referenced based on a etags database. If you browse to
and click on some of the links within the body text you would see that
it jumps to their corresponding definitions.
> Bonus question: why would HTML syntax highlighting come out monochrome
> (as seen here: http://avdi.org/devblog/wp-content/uploads/2011/05/html.png)
> when the export is done in batch mode from the command line? And, more
> importantly, how can I fix it to generate full-color highlighting in
> batch mode?
Let me guess - It is either htmlize not being in your load path during
the batch run or font lock being not being explicity turned on during
the batch run or font-locking simply not making sense during batch
mode. Ultimately htmlize or for that matter htmlfontify seem to depend
on the fontification done by the fontification engine.
next prev parent reply other threads:[~2011-05-30 1:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-30 0:50 HTML Syntax Highlighting Questions Avdi Grimm
2011-05-30 1:32 ` Jambunathan K [this message]
2011-05-30 2:25 ` Avdi Grimm
2011-05-30 3:20 ` Jambunathan K
2011-05-30 4:47 ` Puneeth Chaganti
2011-06-09 1:45 ` Avdi Grimm
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:
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* 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
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).