View Full Version : UltraEdit Syntax Highlighting
Jeff McCune
18-01-2003, 11:21
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.
Jeff McCune
18-01-2003, 15:26
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 /?
Greg Ross
19-01-2003, 02:36
Originally posted by Jeff McCune
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 did a full installation of the BASIC Stamp Editor, it installed a "Stamp Editor.PDF" file in its program directory (C:\Program Files\Parallax Inc\Stamp Editor v2.0 Beta 1, by default.) This document describes the message formats and error messages produced by the editor.
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.
Jeff McCune
19-01-2003, 02:44
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/Documentation/Nuts%20and%20Volts/NV93_PBASIC_Gets_A_Make-Over.pdf
Please tell me if I'm making a mistake, but aren't our editors in black and white?
Thanks in advance,
Rickertsen2
19-01-2003, 17:59
SWEET!!
Greg Ross
19-01-2003, 19:37
Originally posted by Goya
Please tell me if I'm making a mistake, but aren't our editors in black and white?
This page (http://www.parallax.com/html_pages/downloads/software/pbasic_2_5.asp) says
A newer version is expected to be released in the next few weeks which will include the following additional features:
Color syntax highlighting which makes editing and debugging PBASIC programs much easier
Integrated online help file with new PBASIC command examples Conditional compilation directives
Rickertsen2
19-01-2003, 20:08
even better!!
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.