From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: PATCH: programming language indicators in HTML export Date: Tue, 15 Mar 2016 15:24:00 +0100 Message-ID: <87oaafn7jz.fsf@gmx.us> References: <20160314151605.214621e9@pckr150.mpip-mainz.mpg.de> <87shztnj84.fsf@gmx.us> <20160314202536.6548abed@lt70.fritz.box> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afptY-0003fL-Qn for emacs-orgmode@gnu.org; Tue, 15 Mar 2016 10:24:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afptT-0003Nt-3w for emacs-orgmode@gnu.org; Tue, 15 Mar 2016 10:24:24 -0400 Received: from plane.gmane.org ([80.91.229.3]:38712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afptS-0003MK-Tq for emacs-orgmode@gnu.org; Tue, 15 Mar 2016 10:24:19 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1afptQ-0003jc-9i for emacs-orgmode@gnu.org; Tue, 15 Mar 2016 15:24:16 +0100 Received: from 62.80.108.14 ([62.80.108.14]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 Mar 2016 15:24:16 +0100 Received: from rasmus by 62.80.108.14 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 Mar 2016 15:24:16 +0100 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 Hi Robert, Robert Klein writes: >> The patch would make the default html header a bit longer, which may >> or may not be an issue. Perhaps more importantly, it also does not >> deal with new languages. Maybe it would be possible to add a bit of >> JS that would look up the language based on the class of the block in >> question? >> >> E.g. the block >> >> #+BEGIN_SRC rsgrs >> >> #+END_SRC >> >> would have class "src-rsgrs". > > This happens already, but the JS would also have to create the > corresponding CSS code (that's what I hardcoded in the patch). > > However you'd still need a mapping from src block identifier to > pleasantly readable text, e.g. js -> "Javascript", sql -> "SQL", > emacs-lisp -> "Emacs Lisp", ps -> "PostScript" etc. When you have all > those it's not that much different from static CSS anymore... Fair point. > Anyway, my patch is basically for those who don't roll their own CSS to > have things mostly working out of the box. Seems good to me. Robert, do you have a copyright assignment of changes to Emacs? I think the change is too long (in line count) for a TINYCHANGE. Thanks, Rasmus -- And I faced endless streams of vendor-approved Ikea furniture. . .