Grab the below file, toss it into your QB64/source folder, and compile. (Untick the OUTPUT EXE TO SOURCE FOLDER option first or else it'll fuzzle out -- QB64 expects files/folders to be in certain places.)
Done correctly, you'll have a QB64-REPLACE.exe which will automatically run itself and give you a new, unedited, non-error-trapped, command OF DOOM!!!
Usage is rather simple:
$REPLACE whatever = whateverelse
Then, anytime we type whatever into our program, it automatically will change whatever to whateverelse for us.
For example, let's say we type the following code into the IDE:
The moment we hit enter after the second line, what we'll see is:
That ?? got replaced with _PRINTSTRING( -- just as we told it to.
Unfortunately, it also means that if we type: PRINT "Whut??", it's going to change that to PRINT "Whut_PRINTSTRING("....
This is a very simple little replace routine, and it'll swap out code ANYTIME it makes a match, so don't be silly and do something like $REPLACE X = Xpoint.... If you do, you'll probably destroy the universe with that X being replaced over and over and over and over in Xpoint...
This wouldn't be a command for the squeamish, I'd assure you that -- and it has none of the usual error-checking, or "idiot proofing", which we normally see with the IDE. Folks who would be interested in using something like this would need to set themselves some "quick commands" to use with it:
$REPLACE SDP2P = SL_SPRITE_DISTANCE_POINT_TO_POINT
Then, instead of having to type the whole long command, one could type SDP2P and have the IDE automatically replace the shortcut with the actual command for them, as long as they weren't wanting to use SDP2P for something else inside their program...