![]() |
UltraEdit Syntax Highlighting
I got a wordfile for ultraedit which does some really nice Syntax highlighting for PBasic code. However, I'm trying to configure UltraEdit to have a button that automatically loads the code onto the robot. Is there a dos-based loader that I can use to completely tokenize and load a pbasic program file?
Just looking for a way to execute a single command to have the program loaded onto the robot controller. The UltraEdit wordfile can be found here, by the way: http://ultraedit.byondf1.com/downloads/wf/pbasic.txt |
I don't know if this still works with the new editor, but in the old one you could download code by executing the command:
stampw.exe /COMX /Download sourcefile.bsx > errorLog.txt where X is your com port number, sourcefile.bsx is the name of your source file, and errorLog.txt is the file you want error information to go. |
1 Attachment(s)
Wow.
Ok, this is pretty cool. There's been some talk about writing a program that does syntax highlighting and stuff, but now there's no need to. UltraEdit has syntax highlighting for PBasic code, and it's basically a full-fledged mini-IDE. Project support and all. What's cool, however is the ability to execute an arbitrary command on the current file open in the editor. I've configured a tool that will automatically compile and download the file being edited to the stamp. Attached is a screenshot if you're interested, of syntax highlighting working after downloading the code to the stamp. Finally, does anyone know if it's possible to get slightly better messages from the command-line download process? UltraEdit has the intelligence to automatically take you to lines with errors on them, if it sees text like "Error on line 52" |
If you want to see all the command-line options for stampw, drop into a DOS prompt and execute:
stampw /? |
Quote:
If you need the messages in a standard format, you'll have to reformat them yourself. Shouldn't be too hard if you are able to get UltraEdit to execute StampW.exe -- just pipe its output through your custom filter to reformat it, and then let UltraEdit do its thing. |
Good call. I think I'm going to write a quick Perl hack to do just that. Thanks for the suggestions guys.
|
Strange ... Inside the PBASIC article in Nuts and Bolts this janurary, the author states the new editor boasts color editing.
Here's a link - http://www.parallax.com/Downloads/Do..._Make-Over.pdf Please tell me if I'm making a mistake, but aren't our editors in black and white? Thanks in advance, |
SWEET!!
|
Quote:
Quote:
|
even better!!
|
| All times are GMT -5. The time now is 04:28. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi