emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rick Frankel <rick@rickster.com>
To: emacs-orgmode@gnu.org
Subject: Re: Ox-HTML hover for certain languages
Date: Tue, 22 Oct 2013 12:21:55 -0400	[thread overview]
Message-ID: <0a1c644a42ac6468ce61ddc6e2720dac@mail.rickster.com> (raw)
In-Reply-To: <DF7914BB-4EFE-432B-A24A-81EA7BBF03EA@gmail.com>

On 2013-10-21 19:28, R. Michael Weylandt <michael.weylandt@gmail.com> 
wrote:
> Around line 270 of Ox-html.el, there's CSS which gives certain code
> blocks in the resulting HTML a hover-over window saying what language
> they encode. Not all Babel-supported languages appear however: is
> there any reason for this? (E.g. perl is hard-coded but no python)

Never noticed that before. IMHO, it's ugly and broken in a number of
browser which don't handle the "content" attribute very well (firefox
on solaris and IE 8 are bad for different reasons, looks ok on Chrome)
and should be removed entirely instead of trying to keep up w/
babel. I can't say why the list is limited to the specific set of
languages, but since this is part of a defconst for the default inline
styles, it pretty much needs to be hard-coded.

Note that you can easily add other languages via `html-head-extra'.

I've been thinking about how to cleanup the whole inine css/javascript
thing since it makes for bloated (but standalone) html documents, and
in the case of inline css, is broken in batch export due to the use of
htmlize (see `org-html-html-htmlize-output-type').

rick

      reply	other threads:[~2013-10-22 16:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-21 23:28 Ox-HTML hover for certain languages R. Michael Weylandt <michael.weylandt@gmail.com>
2013-10-22 16:21 ` Rick Frankel [this message]

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=0a1c644a42ac6468ce61ddc6e2720dac@mail.rickster.com \
    --to=rick@rickster.com \
    --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).