[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] PATCH: programming language indicators in HTML export

From: Rasmus
Subject: Re: [O] PATCH: programming language indicators in HTML export
Date: Tue, 15 Mar 2016 15:24:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Hi Robert,

Robert Klein <address@hidden> 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.


And I faced endless streams of vendor-approved Ikea furniture. . .

reply via email to

[Prev in Thread] Current Thread [Next in Thread]