From mboxrd@z Thu Jan 1 00:00:00 1970 From: "R. Michael Weylandt " Subject: Ox-HTML hover for certain languages Date: Mon, 21 Oct 2013 19:28:15 -0400 Message-ID: Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYOtm-0004vb-9L for emacs-orgmode@gnu.org; Mon, 21 Oct 2013 19:28:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYOtd-0007UX-S0 for emacs-orgmode@gnu.org; Mon, 21 Oct 2013 19:28:34 -0400 Received: from mail-ob0-x229.google.com ([2607:f8b0:4003:c01::229]:51303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYOtd-0007UB-Mr for emacs-orgmode@gnu.org; Mon, 21 Oct 2013 19:28:25 -0400 Received: by mail-ob0-f169.google.com with SMTP id wp4so6641588obc.0 for ; Mon, 21 Oct 2013 16:28:24 -0700 (PDT) Received: from [10.22.151.216] (mobile-198-228-206-179.mycingular.net. [198.228.206.179]) by mx.google.com with ESMTPSA id b5sm35835870obj.8.2013.10.21.16.28.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Oct 2013 16:28:23 -0700 (PDT) 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: "emacs-orgmode@gnu.org" Around line 270 of Ox-html.el, there's CSS which gives certain code blocks i= n the resulting HTML a hover-over window saying what language they encode. N= ot all Babel-supported languages appear however: is there any reason for thi= s? (E.g. perl is hard-coded but no python) I suppose one could pull all the sources from the #+BEGIN_SRC XYZ blocks and= generate this on demand, using a lookup table for known languages and a bas= ic capitalization scheme for unknown languages.=20 I'm not much of an elisp user, but would be happy to try my hand at a patch i= f this would be of interest.=20 Michael=