That doesn't seem to work either.
I am trying to add syntax coloring for scala, so I took the jEdit
scala.xml colorizer file and used the Leo script to convert it to
scala.py. Then I put it in the modes.py directory.
There was nothing in the "<< define colorizer constants >>" node that
looked relevant, but I did a full text search for "java" and saw an
array of language names to which I added "scala". I also saw a couple
of dictionaries in leoApp.py which had comment and extension information
so I added entries for scala.
Still, when I created a node and added "@language scala", none of the
keywords got colorized. I tried debugging code that looked like it was
responsible for colorizing by adding "print" statements, but nothing
showed up in either the logging window or the console so I have no idea
what is going wrong.
Cheers,
Greg
On 4/9/11 2:18 AM, Edward K. Ream wrote:
On Fri, Apr 8, 2011 at 8:05 PM, Gregory Crosswhite
<[email protected]> wrote:
Is there currently a process by which syntax coloring for new languages can
be added?
First, see if there is an entry in leo/modes for the language. If
there isn't, you must write new-language.py, as described at:
http://webpages.charter.net/edreamleo/coloring.html
You must also extend the data structures in leoColor.py:
Code-->Core classes-->@file leoColor.py--><< define colorizer constants>>
I think that is all your plugin needs to do.
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" 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/leo-editor?hl=en.