From: Jambunathan K <kjambunathan@gmail.com>
To: avdi@avdi.org
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: HTML Syntax Highlighting Questions
Date: Mon, 30 May 2011 07:02:51 +0530 [thread overview]
Message-ID: <81zkm5otvg.fsf@gmail.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 <avdi@avdi.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.
Slightly off-topic.
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
<text:span>...</text:span>.
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
http://rtfm.etla.org/emacs/htmlfontify/src/htmlfontify.el.html
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.
Jambunathan K.
--
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
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=81zkm5otvg.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=avdi@avdi.org \
--cc=emacs-orgmode@gnu.org \
/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).