[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-source-highlight] Nestable background colors for Lisp code
From: |
Lorenzo Bettini |
Subject: |
Re: [Help-source-highlight] Nestable background colors for Lisp code |
Date: |
Wed, 06 Mar 2013 10:34:20 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3 |
On 03/04/2013 03:16 PM, Paulo Henrique Torrens wrote:
> Hi,
>
> I have quickly made a code highlighter in PHP for a huge project (which
> handles several programming languages, including some domain specific
> languages created for the project), but it got too slow for big files
> (as expected, since I didn't put much effort)... but I don't have time
> to rewrite it taking care of speed.
>
> So I am intending to migrate to source-highlight, which seemed a really
> good alternative, but I have a problem:
>
> Here is a screenshot of a Common Lisp code highlighted by my code:
> http://img841.imageshack.us/img841/2706/capturadetela20130303s1.png
>
> This would also be useful for for highlighting regexes' subexpressions.
>
> I know I cannot achieve this result with source-highlight, but... are
> you open to some extensions to make such effect? Any suggestion for the
> syntax for the language files to make such a thing?
>
> I could then write the patch, if necessary.
Hi Paulo
as far as I understand, to highlight lisp code to that extent you need
lots of information; can you gather that only with lexical analysis and
regular expressions? These are the only mechanisms which
source-highlight is based on...
cheers
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it