Hello, I did import yaml.xml from jEdit and added it into self.language_delims_dict but I can't get Leo to syntax highlight it nor apply the options like tabwidth = 2 . Leo *does* load the file and modes/yaml.pyc is created but otherwise it does nothing nor outputs any error..
Tried both yaml.xml from jedit distribution: http://sourceforge.net/p/jedit/jEdit.bak/ci/master/tree/modes/yaml.xml?format=raw and third party one: https://raw.githubusercontent.com/djspiewak/jedit-modes/master/yaml.xml without avail. I believe this is same as original poster's problem, but discussion was derailed into using yaml as leo file format and whatnot. I only need syntax coloring for @file nodes, using @language yaml, nothing else. Does this work for anyone? Juraj On Wednesday, March 12, 2014 12:31:31 PM UTC+1, Edward K. Ream wrote: > > On Tue, Jan 7, 2014 at 1:37 PM, Offray Vladimir Luna Cárdenas < > [email protected] <javascript:>> wrote: > >> >> >> I think that we need a better way to make syntax coloring easier for Leo. >> I don't know which are the details in leo/modes but would be nice to have >> some kind of compatibility layer to some syntax coloring files. For example >> importing the 200plus languages (including yaml) of jEdit would be handy >> (If I remember well, there is a relationship in this aspect between jEdit >> and leo, but I don't remember which one). Being Leo such a a versatile >> tool, wich is also code editor, having such limitation on syntax coloring >> support is really annoying. >> > > The script jedit2py in leo/scripts/scripts.py (accessible via the File > menu) converts a jEdit xml file to a .py file. > > Edward > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
