"calicommando" wrote:
"MarkRoddy" wrote:
"enorris" wrote:
I haven't been able to find Eclipse or IntelliJ plugins for BrightScript syntax highlighting or parsing. Visual Studio can do syntax highlighting (Tools | Options | Text Editor | File Extension | then assign brs to Visual Basic) but not validation as far as I can tell.
Alternately, is there another way to check program correctness (syntax, behavior, whatever) short of downloading it to the device and running it?
It may not be of interest to you, but I have a basic emacs major mode that does syntax highlighting.
-Mark
Mark, that greatly interests me. Can I get that?
I posted it here:
http://dibon.homelinux.org/~mark/brightscript-mode.elA few caveats:
* So far I've only added keyword and built-in function highlighting.
* Comments are sorta kinda handled but not really.
* Except for comments starting with "Rem", these aren't handled at all.
* I'm an amateur elisp hacker at best, if some of the code looks silly it probably is.
That aside, I find it way easier to work with keywords (function/sub, if/then/else, etc) highlighted as it feels like one giant blob of text otherwise. If I have time in the future, I'd like to add smarter syntax handling so I'm not constantly fudging with my indents as well as a few other niceties, but who knows if I'll ever get around to that.
-Mark