Beautify Your Code - Via Hotkey

Previous topic - Next topic

StuC_Ovine

Little app I use internally - thought others might like it. (win32)

It beautifys your code on the press of a defined hotkey. ( Auto indents your code )

It works by using your clipboard to take a copy of your source (from a valid text box / IDE  etc),  processes it then pastes it back.  

It will autosense (hopefully) what codebase you are using (as it works with VB, blitz3d, Blitzmax and now GLbasic).



Grab the file from http://baa.ovine.net/codeformat.zip


/Stu
www.ovine.net


D2O

Cool  :good: und ein wirklich gut zu gebrauchendes program.

Scheint recht gut zu laufen.
Danke.


Jetzt muss nur noch ein Makro her um es aus der IDE zu starten.
;---------------------------------------------
Cool: good: and one really per-grief well to be used.

Seem to run properly well.
Thanks.

Now must to only start therefore a macro from the IDE.
I7 2600K; 8 GB RAM ; Win10 Pro x64 | NVidia GTX 750 TI 2048MB ; Realtec OnBoard Sound;
Lenovo ThinkPad T400: XP Pro
GLB Premium-immer Aktuell

Marmor


Albert


D2O

Ich habe StuC mal eine Mail geschickt.
Vieleicht setzt er einen neuen Link.

Ich gebe bescheid falls eine Antwort kommt.

I7 2600K; 8 GB RAM ; Win10 Pro x64 | NVidia GTX 750 TI 2048MB ; Realtec OnBoard Sound;
Lenovo ThinkPad T400: XP Pro
GLB Premium-immer Aktuell

felix330

#5
Found it! The codeformat.exe still seems to be on the server. http://ovine.net/download.php?dl=codeformat .
Edit:works great :)

D2O

I7 2600K; 8 GB RAM ; Win10 Pro x64 | NVidia GTX 750 TI 2048MB ; Realtec OnBoard Sound;
Lenovo ThinkPad T400: XP Pro
GLB Premium-immer Aktuell

Albert


Albert

It's not working very well for me, it can't detect the ENDFUNCTION.

Code (glbasic) Select

// get map width (tiles)
FUNCTION MapWidth: map
RETURN LAYERS[map].getWidth()
ENDFUNCTION

// get map height (tiles)
FUNCTION MapHeight: map
RETURN LAYERS[map].getHeight()
ENDFUNCTION

// get tile width (pixels)
FUNCTION TileWidth: map
RETURN LAYERS[map].TWidth
ENDFUNCTION

Moru

Try my beautifier. Not as nice as the Ovine one but might work still? :-)
http://gamecorner.110mb.com/index.php?page=beautify

bigsofty

#10
Id like to know how he gets in/out GLBasic. He copies all the code into the pastes buffer, changes it in an external app and then pastes it back in? All seamlessly

I'll maybe contact STU at Ovine and ask him to opensource this old util.
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Albert

More: I've already tried your beautifier, but I wanted to try this also. Now I will stick with your script.