From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Klein Subject: Re: PATCH: programming language indicators in HTML export Date: Tue, 10 May 2016 21:07:04 +0200 Message-ID: <20160510210704.7a54bec7@lt70.fritz.box> References: <20160314151605.214621e9@pckr150.mpip-mainz.mpg.de> <20160509130123.5c47ca74@pckr186.mpip-mainz.mpg.de> <87mvnzyp33.fsf@saiph.selenimh> <20160510071950.4a063dcb@pckr186.mpip-mainz.mpg.de> <87inymdyp2.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0CzY-0000WF-DJ for emacs-orgmode@gnu.org; Tue, 10 May 2016 15:06:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0CzT-0004Lc-NF for emacs-orgmode@gnu.org; Tue, 10 May 2016 15:06:47 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:54007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0CzT-0004Iu-9D for emacs-orgmode@gnu.org; Tue, 10 May 2016 15:06:43 -0400 In-Reply-To: <87inymdyp2.fsf@gmx.us> 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" To: Rasmus Cc: emacs-orgmode@gnu.org Hi, Rasmus wrote: > Robert Klein writes: > > > Hi, > > > > Nicolas Goaziou wrote: > > > >> Hello, > >> > >> Robert Klein writes: > >> > >> > anyone willing to commit this patch I sent back in march? > >> > >> This patch actually felt through the cracks. Sorry about that. > >> Would you mind sending it again, using git format-patch so I can > >> apply it? > >> > > > > Please find the patch attached. > > I wonder if it would be possible (or even desirable) to build this > part of the css header automatically? It may be too prone to > unexpected bugs. > basically same answer I gave last time; when you want JS to create the CSS you still have to map the source block identifier to ``readable'' text elsewhere. You'd just move the static from org-modes basic CSS into org-mode. I think the patch is a bonus for those, that don't roll their own CSS (e.g. Tianxian Xiong, who first gave me the idea). Any automated solution would be error-prone, too, and depend on: - what's the Emacs mode for editing (or is there one at all)? - is there an ob- module for running the code? - for LaTeX export: is the language supported by - the LaTeX listings package (and what is its name there?)? - or the pygments library (for those using the LaTeX minted package)? One example I use for documentation is `conf' source blocks for `generic' configuration files. For LaTeX export I have to add (add-to-list 'org-latex-listings-langs '(conf " ")) to my .emacs, as the listings package doesn't support a `configuration' language. It's a hack, but it works. I don't see a general solution (even if restricted to the CSS header). I see my patch as a `best effort' for getting things working out of the box. Anyone rolling his own CSS will probably pick his 2 to 5 languages and be happy with them. Best regards Robert