CodeCaddy v2.08x
New version v1.00a build 374 11.09.07 save 5989.
Changes:
- BOM header now accepted (UTF8)
- updated Quickhelp file
- minor change in CodeSync
Changes:
- BOM header now accepted (UTF8)
- updated Quickhelp file
- minor change in CodeSync
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
New version v1.00b build 378 12.09.07 save 5993.
Changes:
- ooops, missed writing a CRLF when preprocessing the first line, fixed
Changes:
- ooops, missed writing a CRLF when preprocessing the first line, fixed
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Okay. It's horrible. It's ill conceived. It's very amateuristic. But it's there...
The first CodeCaddy movie. (Hey, Uwe Boll couldn't have done worse.)
http://www.xs4all.nl/~bluez/datatalk/codecaddy_demo.wmv
I created a couple of screen captures using a free tool, but in my foolishness I choose the wrong codec. (Windows Video1 IIRC.) This stored the captures in some freakish format making it impossible to edit it using my normal tools, so I said to myself: what the heck. Let's do it in MovieMaker.
Brrrrr. Poor choice. Fades fade through black. Strange encoding artifacts. Slow. Pain in the but for properly splitting. And not even an A/B roll (let alone multitrack). Okay, okay, it has some titling stuff build in, and it properly supports WMV media (but it screws up on the conversion of Video1 to regular AVI stuff). Sigh.
Then, of course, there's the stupid fact that I did not check volume levels, so noise, hiss, plopping, you got it all. And that at an absolute volume level too low. Hey, one should not expect too much of the microphone of a five dollar headset
Anyway, the end result was so poor that I decided to put some background music under it, so at least one would have *some* reason to sit through the torture. Also, it gave me a good change to plug one of my favourite shows: Firefly.
This clip is so bad, it's almost good. It's a good thing I don't charge money... Anyone interested in a sequel?
The first CodeCaddy movie. (Hey, Uwe Boll couldn't have done worse.)
http://www.xs4all.nl/~bluez/datatalk/codecaddy_demo.wmv
I created a couple of screen captures using a free tool, but in my foolishness I choose the wrong codec. (Windows Video1 IIRC.) This stored the captures in some freakish format making it impossible to edit it using my normal tools, so I said to myself: what the heck. Let's do it in MovieMaker.
Brrrrr. Poor choice. Fades fade through black. Strange encoding artifacts. Slow. Pain in the but for properly splitting. And not even an A/B roll (let alone multitrack). Okay, okay, it has some titling stuff build in, and it properly supports WMV media (but it screws up on the conversion of Video1 to regular AVI stuff). Sigh.
Then, of course, there's the stupid fact that I did not check volume levels, so noise, hiss, plopping, you got it all. And that at an absolute volume level too low. Hey, one should not expect too much of the microphone of a five dollar headset

Anyway, the end result was so poor that I decided to put some background music under it, so at least one would have *some* reason to sit through the torture. Also, it gave me a good change to plug one of my favourite shows: Firefly.
This clip is so bad, it's almost good. It's a good thing I don't charge money... Anyone interested in a sequel?

Last edited by blueznl on Thu Sep 13, 2007 3:51 pm, edited 2 times in total.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
-
- Enthusiast
- Posts: 767
- Joined: Sat Jan 24, 2004 6:56 pm
New version v1.01 build 380 10.11.07 save 5998.
Changes:
- small update in the docs
- needed to do a recompile, lost the .exe...
- verified workings with 4.10 final: works fine
Yes. PureBasic 4.10 is out. Time to nag AlphaSnd for 4.20
Changes:
- small update in the docs
- needed to do a recompile, lost the .exe...
- verified workings with 4.10 final: works fine
Yes. PureBasic 4.10 is out. Time to nag AlphaSnd for 4.20

( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
New version v1.02x build 381 04.12.07 save 6002.
Changes:
- different algoritm for flattening
CodeCaddy now also supports preceeding underscore characters, as in:
becomes
Changes:
- different algoritm for flattening
CodeCaddy now also supports preceeding underscore characters, as in:
Code: Select all
a = a + _
1
b = b +
_ 1
Code: Select all
a = a + 1
b = b + 1
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
New version v1.03x build 396 08.12.07 save 6064.
Changes:
- little bugfix in reformatting
- added an .swf introduction file
To see the introduction, start up codecaddy, and select the 'Flash' entry under Help.
Of course, you could also try this link:
http://www.xs4all.nl/~bluez/datatalk/codecaddy.htm
Though that would nullify the following request: I'd like to know how it looks on machines that use weird themes, Windowblinds, or Vista. Thanks in advance.
(To be honest, I used CodeCaddy as a testbed. I was fooling around with Wink to create something for another program, and decided to learn how to do this by creating something for CodeCaddy. Thus, no Oscar material
)
Changes:
- little bugfix in reformatting
- added an .swf introduction file
To see the introduction, start up codecaddy, and select the 'Flash' entry under Help.
Of course, you could also try this link:
http://www.xs4all.nl/~bluez/datatalk/codecaddy.htm
Though that would nullify the following request: I'd like to know how it looks on machines that use weird themes, Windowblinds, or Vista. Thanks in advance.
(To be honest, I used CodeCaddy as a testbed. I was fooling around with Wink to create something for another program, and decided to learn how to do this by creating something for CodeCaddy. Thus, no Oscar material

( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
I have a problem using your codecaddy - reformat program that I have also seen
with some other attempts too. And that is that although it does a reformat
of the code. It can not do a complete job because of a little quirk often
done during coding and copying and pasting of code. And that is the combinations
of spaces and tabs and more spaces that sometimes get entered in. Your program
seems to address the leading spaces and then reformats the code. But this
causes some areas to not reformat right at all, due to still having more
combinations of tabs and spaces that weren't removed. So I wrote this program
below that removes all of those and leaves you with all code lined up on the left.
Now when you run your program, even on a very long one. WOW!, your program
does an excelent job!
Would it be possible to incorporate this or something like this into your program?
Note: I didn't get to test the latest version that I 'just' saw in the previous post, so I don't know if you addressed this
already. But I have posted my tested code for your review if not.
Thank you for your nice programs.
Later:
I just got back home and tried your newer version and it still has the same problem. But when I run my
code to flush it all to the left and then your reformat program. Boy it does such a nice job. I'm really happy
with the results of your code, and especially the job it does on large pieces of code.
with some other attempts too. And that is that although it does a reformat
of the code. It can not do a complete job because of a little quirk often
done during coding and copying and pasting of code. And that is the combinations
of spaces and tabs and more spaces that sometimes get entered in. Your program
seems to address the leading spaces and then reformats the code. But this
causes some areas to not reformat right at all, due to still having more
combinations of tabs and spaces that weren't removed. So I wrote this program
below that removes all of those and leaves you with all code lined up on the left.
Now when you run your program, even on a very long one. WOW!, your program
does an excelent job!
Would it be possible to incorporate this or something like this into your program?
Code: Select all
;RmvIndents
;
;Part of this code is borrowed from somewhere, but it didn't work right.
;It only got the leading spaces, so I rewrote it to get all leading "spaces and tabs".
;I configured this tool to use the same Arguments set that you used
;with codecaddy - reformat --> format "%FILE"
;Tick 'Wait until tool quits', 'Reload Source' and 'into current source'
;I only use the "%FILE" parameter, but I did it this way so it
;could be easier to integrate into your program.
;start with a default path
pp$=Space(#MAX_PATH)
GetCurrentDirectory_(#MAX_PATH,@pp$)
pp$+"\"
InitialPath$ = pp$
cpp.b=CountProgramParameters()
If cpp<>2
MessageRequester("Error","Wrong number of parameters.")
;End
EndIf
dump.s=ProgramParameter() ; I'm not using
pps.s=ProgramParameter()
;check if file was saved first ********* IT WILL NOT WORK UNLESS SAVED FIRST *******
If pps=""
MessageRequester("Error","Source file has to be saved first.")
End
EndIf
;create a spare backup file for safety. Can delete later.
RenameFile(pps,pps+".bak")
OpenFile(0,pps)
;create a tempfile to write undented lines to.
CreateFile(1,InitialPath$+"tempfile.pb")
While Not Eof(0)
getline.s=ReadString(0)
getline=Trim(getline)
If Left(getline,1)=Chr(9) ;This added part gets rid of all added tabs and space
While Left(getline,1)=Chr(9) ;combinations that had been used to indent the code.
getline=Mid(getline,2,9000)
getline=Trim(getline)
Wend
EndIf
WriteStringN(1,getline)
Wend
CloseFile(0)
CloseFile(1)
CopyFile(InitialPath$+"tempfile.pb",pps)
already. But I have posted my tested code for your review if not.
Thank you for your nice programs.
Later:
I just got back home and tried your newer version and it still has the same problem. But when I run my
code to flush it all to the left and then your reformat program. Boy it does such a nice job. I'm really happy
with the results of your code, and especially the job it does on large pieces of code.
Last edited by yrreti on Mon Dec 10, 2007 12:53 pm, edited 1 time in total.
Did you answer 'yes' when it tried to go on the net? Or did you start up the browser to look at it?
I just tried it here on my laptop from work, and CodeCaddy opens a dedicated window just to show the flash. Didn't that work on your machine?
I just tried it here on my laptop from work, and CodeCaddy opens a dedicated window just to show the flash. Didn't that work on your machine?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Hi blueznl
I just got home from work. Yesterday I did not go to the web through your program. I just used your web site.
Today when I got home, I tried it by going through your program, and it worked fine. Locally though it won't work
without the needed files. They weren't included with the latest zip file of your program. Are you going to include them
later or is it possible to download then separately? You did a nice job in creating it. Oh yes, I'm using XP Pro.
Also if I may ask? Did you have a chance to look at my posted code above?
I was looking at your code to see if I could add it for my personal use and noticed that it is missing this file in order to compile. (IncludeFile("..\x_lib\_old\x_lib_4405x.pb") on line 16
If my code could be added to your reformat program, it would really be appreciated, because by using that code first
and then running your program. It really does a fine job!
Thank you for your program and your time.
I just got home from work. Yesterday I did not go to the web through your program. I just used your web site.
Today when I got home, I tried it by going through your program, and it worked fine. Locally though it won't work
without the needed files. They weren't included with the latest zip file of your program. Are you going to include them
later or is it possible to download then separately? You did a nice job in creating it. Oh yes, I'm using XP Pro.
Also if I may ask? Did you have a chance to look at my posted code above?
I was looking at your code to see if I could add it for my personal use and noticed that it is missing this file in order to compile. (IncludeFile("..\x_lib\_old\x_lib_4405x.pb") on line 16
If my code could be added to your reformat program, it would really be appreciated, because by using that code first
and then running your program. It really does a fine job!
Thank you for your program and your time.
I will have to check the archive. Maybe I forgot some stuff.
It should be easy to strip the tabs, I'll see if I can add that. Spaces are already removed.
It should be easy to strip the tabs, I'll see if I can add that. Spaces are already removed.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Let's see, basically you're just want to get rid of all preceeding tabs... how about first replacing each tab with 5 spaces, then trim and reformat? that way they are removed elsewhere from the code as well.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Yes that would work, but if you use tabs else where, like in comments etc, they will be affected also. The code I wrote,
While and Wends, until all indenting spaces and tabs are removed, as in the example below, and only affects the indented
part of the code.
Here is using an example of a part of my code to show the problem.
The 32 represents a space and the 9 a tab.
code:
But even if you were to just add a procedure to first replace each tab with 5 spaces, then trim and reformat.
The end result of excellent reformating would still be achieved and appreciated.
Positioned comments could always be fixed later.
While and Wends, until all indenting spaces and tabs are removed, as in the example below, and only affects the indented
part of the code.
Here is using an example of a part of my code to show the problem.
The 32 represents a space and the 9 a tab.
code:
Code: Select all
start
323299932993232While Not Eof(0)99;comment
getline=Trim(getline) -> 99932993232While Not Eof(0)99;comment
While Left(getline,1)=Chr(9)
getline=Mid(getline,2,9000) -> 32993232While Not Eof(0)99;comment
getline=Trim(getline) -> 993232While Not Eof(0)99;comment
While Left(getline,1)=Chr(9)
getline=Mid(getline,2,9000) -> 3232While Not Eof(0)99;comment
getline=Trim(getline) -> While Not Eof(0)99;comment
finish
Code: Select all
While Not Eof(0)
getline.s=ReadString(0)
getline=Trim(getline)
If Left(getline,1)=Chr(9) ;This added part gets rid of all added tabs and space
While Left(getline,1)=Chr(9) ;combinations that had been used to indent the code.
getline=Mid(getline,2,9000)
getline=Trim(getline)
Wend
EndIf
WriteStringN(1,getline)
Wend
The end result of excellent reformating would still be achieved and appreciated.
Positioned comments could always be fixed later.