Thanks for the response! It was enough for getting me starting :) I already defined a couple of parsing rules and they work as expected. Right now I have some questions:
- I try to use "@color comment1 = blue" and it seems to do nothing. I tried putting "@language python" at the top of the file, and a python comment "#like this". Then I put "@color comment1 = blue" at the root node of the tree, I also putted it as a subnode of the @settings node and also in mySettings.leo. It doesn't work even when I restart Leo. :( What am I doing wrong?
- Maybe this is related. I was reading the modes/python.py file, and I was looking at python_rule20. This uses match_mark_previous, which I think that searches for "(" and colorizes whatever comes before in the "function" color. I don't understand why It doesn't color the "def init1():" line in the example in "quickstart.leo", under Programming>External files...
Other non-related question that I have:
Is it possible to import recursively the files of a folder? I tried "@path" and right clicking
"import files", but I have to select all the files manually and it is very annoying. Is there a better way? This also puts "@language unknown_language" at the top of each file... How can I make it detect my language?
Thank you very much!
Eloi