|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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 |
|
#2
|
||||||
|
||||||
|
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. |
|
#3
|
||||
|
||||
|
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" |
|
#4
|
||||||
|
||||||
|
If you want to see all the command-line options for stampw, drop into a DOS prompt and execute:
stampw /? |
|
#5
|
|||||
|
|||||
|
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. |
|
#6
|
||||
|
||||
|
Good call. I think I'm going to write a quick Perl hack to do just that. Thanks for the suggestions guys.
|
|
#7
|
|||
|
|||
|
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, |
|
#8
|
||||
|
||||
|
SWEET!!
|
|
#9
|
|||||
|
|||||
|
Quote:
Quote:
|
|
#10
|
||||
|
||||
|
even better!!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| BS2 syntax (PBASIC) on the new controllers? Maybe! | Jeremy_Mc | Programming | 0 | 25-10-2003 15:00 |
| PBASIC Syntax Question | Raven_Writer | Programming | 4 | 20-08-2003 08:07 |
| PBASIC language syntax | WizardOfAz | Programming | 14 | 30-04-2003 10:23 |
| Pbasic 2.5 syntax | Rickertsen2 | Programming | 10 | 15-02-2003 08:56 |