On 19-6-2012 06:54, Bill Meahan wrote:
I'm trying to get the SciTE lexers that come with the ConTeXt distribution working but I'm not having much luck. SciTE certainly processes the ConTeXt start-up script but never does any highlighting.
I always get the warning that lpeg is not loaded but I cannot find any separate lpeg.properties file or lpeg.lua file so I don't know how to get it imported and active to run the lexers. Any suggestions?
Interestingly, the lexers work just fine in Textadept but I haven't quite figured out how to get them to load automatically. I have to manually select the lexer but it works fine once I do.
I'm inclined to go the Textadept route and build a nice snippets file and Adeptsense support but I'd like to see things running in SciTE, too.
You have to change some configuration files but as that situation seems to change every now and then I wait with providing extra files for textadept till it's more stable. (Textadept has no realtime log pane so I cannot use it here without sacrificing too much convenience.)
Right now I'm using Emacs to do my editing but AUCTeX does a poor job of supporting ConTeXt and when I asked about future plans on the AUCTeX mailing list, I got a snarky, sarcastic reply that "code doesn't change itself." Typical FSF attitude, I see. If I'm going to have to write my own support, Lua is much closer to the languages I've used before than elisp so it should be considerably easier.
Of course, I'll pass on anything I come up with to the ConTeXt community.
concerning scite ... on windows it boils down to - installing scite - copying the scintillua lexer dir to the wscite path - copying the context/data/scite directory to teh wscite dir on linux it's a bit more complex as you need to figure out where scite keeps its properties files and that's sort of hard coded in the binary (but it does work on linux) on osx it's not working as there is no lpeg support provided there (unfortunately) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------