Convert SciTE Language Files Automatically
03 Feb 2006Sebastian Pipping has written a perl script that can convert from SciTE .properties files to PN scheme files. This is a rough and ready tool, but will make it really easy to convert a lot of languages from SciTE to PN2. Sebastian had this to say about the limitations of the tool:
-
there still is manual completion to do after conversion. best case is you just have to finish the styles but it could also be useless keygroup names or worse. nevertheless the output should be a good base at least.
-
it currently does not handle “font.” and “colour.” style properties. some of these made PN2 denying the scheme file. the code for this is in the script - it is just turned off.
-
all names are extracted from the last comment line before. some property files do not support this concept so the names we get are quite useless or even mis-leading (from far before comments).
-
the script cannot deal with property files using multiple lexers. error handling is almost zero in general.
This will be really useful and should help the number of languages supported by PN soar.
Download Sebastian’s Perl script.
Thanks Sebastian!