[Geany] 3 little things

spir denis.spir at xxxxx
Fri May 1 06:55:23 UTC 2009


Le Fri, 01 May 2009 09:30:19 +1000,
Ross McKay <rosko at zeta.org.au> s'exprima ainsi:

> spir wrote:
> 
> >Couldn't this more easily be implemented by "cheating" with the editor 
> >(the reason why I used the term "pseudo-code")? For instance, if I 
> >save a plain text file under the name "dummy.py", then folding applies
> >like for python code. So, I guess we could have a foldable_text file 
> >type for cheap.
> 
> In which case you can just Set Filetype from the Document menu... :)

If you think you are right, just try it on a plain text file that happens to be indented à la python: the result is python-syntax-highlighted, meaning e.g. that every 'for' looks like a keyword and in every line holding '#' the rest looks like a comment ;-)
What we need is to inherit the folding logic only.
But your suggestion may be useful anyway. We could have a pseudo-language type that inherits that logic and set "neutral" syntax-highlighting. If you know how to create a new file type for geany, and assign it this and/or that folding logic, hints welcome. Couldn't find it inside filetype.* files.

Denis
------
la vita e estrany



More information about the Users mailing list