? Automatic Code Indenter -- Updated ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password
Another contest? You asked for it!

Automatic Code Indenter -- Updated

Submitted
Updated
Author
12Me21
Public Key
DKS8X5D6
Min. Compat.
All
Version
4
Size
4.9 KB
Rating
3 votes
Description Adds indenting to code: WHILE 1 MEOW WENDbecomes WHILE 1 MEOW WEND (this works even if the code already has indenting. You can also customize the indent amount) Update: now displays actual error messages! Instructions -Load AUTO_INDENT3 into a different slot from the one your program is in (you can also set it as the smile tool) -Run that slot -Enter the slot of the program you want to edit -Wait (it runs at about 200 lines per second) If you want the indenter to stop before the end of the program (If you have lots of MML DATA, for example) you can add the line 'INDENT END PLEASE report any errors!
Categories
Keywords
5 Comment(s) 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself I'm working on version 4 now It will detect the cause of indenting errors (For example, having more NEXT than FOR) I just have to make it detect errors in IF/THEN/ELSEIF/ELSE/ENDIF Released! NeatNit NeatNit That NEXT in PetitWorld should be replaced with CONTINUE. GOTO inside a loop makes sense if the destination label is also inside the loop. 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Well, yes. But then you could just move the code to where you needed it 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself I counted. There are 36 WHILEs and 37 WENDs... How does this not cause an error? 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself I think what I'll do for the next version is have the program count the number of each keyword, so it can tell you what caused the problem.