Hi David, This sounds very interesting indeed.
I did some tests a while ago with a syntax highlighter based on pygments (I started with code from IPython Qt console which is doing something similar). But the problem was the performance: I compared the two solutions with a very long Python script and the pygments-based code was 2-3 times slower if I remember correctly. And I think that Spyder syntax highlighting is already very slow as it is (it is obvious when restarting Spyder with a lot of opened scripts: the splash screen stays a while on "Loading editor plugin..."). So, have you an idea of the performance of your code? Note that even if it's slower than Spyder's builtin highlighter, we may use it anyway to add support for more languages (but not for already supported languages for which we would keep the current implementation). Anyway I like the idea of a generic highlighter and I thank you for looking into it. Cheers Pierre Le 25 avr. 2012 à 07:35, David Joy <[email protected]> a écrit : > Hi All, > > I do a lot of work with spyder, especially cross-language work. > Spyder has great support for python, not so great support for Ruby, or > shell stuff, or MATLAB (yeah, I know)... Is there any interest in a > more general syntax parser for spyder? > > I did a quick fork and prototyped a highlighter based on pygments: > http://pygments.org/ > > Prototype here: http://code.google.com/r/videan42-spyderlib-pygments > > I wrote it for tcsh, but it should generalize to any of the 100-some > odd languages Pygments supports. > > Cheers, > -David > > -- > You received this message because you are subscribed to the Google Groups > "spyder" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/spyderlib?hl=en. > -- You received this message because you are subscribed to the Google Groups "spyder" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.
