At present, Leo does not know how to color yaml. You can see this
because there is not file yaml.py in the leo/modes directory.
> BTW, my YAML config file just contains content like python dict objects. Can
I view them like the imported python source file? I mean, I can view keys in
tree navigation.
Leo does not know how to import yaml *data* either, although there is
experimental support for importing leo files represented in yaml.
Edward
On Tue, Apr 24, 2012 at 12:37 PM, Exaos Lee <exao...@gmail.com> wrote:
> I imported yaml config file into leo, but no syntax highlight for yaml. How
> to enable it?At present, Leo does not know how to color yaml. You can see this
because there is not file yaml.py in the leo/modes directory.
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.