If/EndIf for IDE autoindent
Blitz3D Forums/Blitz3D Programming/If/EndIf for IDE autoindent
| ||
After using IDEal, and finding it's the best IDE I've ever used, I noticed it can't tell which If's need an endif and which don't. So I made this function. It was hard as HELL! This takes a line of blitz3d code that begins with "If" and tells if it needs and EndIf (and thus the next line should be indented.) Anyone want to test it? There could be bugs. Does anyone have a better way of doing it or a way of optimizing it? Trixx: wanna put it in IDEal? Here's a test program. |
| ||
I wrote this a while back, you might be able to use it? http://www.blitzbasic.com/codearcs/codearcs.php?code=1229 |
| ||
Actually you should be able to use my code to help your indent program. Times it will NOT work: If you've got if statements without 'then' formed like 'If a=true a=false' My code solves that problem. That is the only purpose of my code. |