[Implemented] PB Editor: Mark files when modified
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
[Implemented] PB Editor: Mark files when modified
Restored from previous forum. Originally posted by horst.
Very often I forget to save an included file in the editor,
before I run the compiler.
It would be a great help if the files were marked
(by red font color on the file tabs, for example),
as soon as any changes are made.
Horst
Very often I forget to save an included file in the editor,
before I run the compiler.
It would be a great help if the files were marked
(by red font color on the file tabs, for example),
as soon as any changes are made.
Horst
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by MrVainSCL.
Mhhhh.. if we talk here about editor and save sources stuff... i have there another small thing that would be maybe a nice feature for some people... What about an optional option, when saving a file (original project name) and the editor will create automatical a .bak file! So you can change your actual projcet, save/run and compile it.. and if you see that there is something wrong and you forgot to create a backup of the last (working) source version, you have always the bak file...
What i mean, when saving a project, dont save this as *.pb and *.bak!!! Nooo... IF you changed your source and save it, the new version will be saved as *pb and the old (before you overwrote it) will be saved as *.bak
What do you think? Just an idea
greetz
MrVainSCL! aka Thorsten
PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX9.0, SB AWE64, Win2000 + all Updates...
Mhhhh.. if we talk here about editor and save sources stuff... i have there another small thing that would be maybe a nice feature for some people... What about an optional option, when saving a file (original project name) and the editor will create automatical a .bak file! So you can change your actual projcet, save/run and compile it.. and if you see that there is something wrong and you forgot to create a backup of the last (working) source version, you have always the bak file...
What i mean, when saving a project, dont save this as *.pb and *.bak!!! Nooo... IF you changed your source and save it, the new version will be saved as *pb and the old (before you overwrote it) will be saved as *.bak
What do you think? Just an idea
greetz
MrVainSCL! aka Thorsten
PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX9.0, SB AWE64, Win2000 + all Updates...
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by horst.
I cannot convince my PB Editor 3.53 to save all source bevor run/compile.
Anyhow, I started this topic with a simple suggestion:
to mark files that have been modified (and not yet saved).
Is this such a bad suggetion?
I use several other editors, and they all do this, for a good reason.
Is really nobody interested??
Horst
What is already where?Originally posted by fred
It's already here.
Fred - AlphaSND
I cannot convince my PB Editor 3.53 to save all source bevor run/compile.
Anyhow, I started this topic with a simple suggestion:
to mark files that have been modified (and not yet saved).
Is this such a bad suggetion?
I use several other editors, and they all do this, for a good reason.
Is really nobody interested??
Horst
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by freak.
> Ha, yes, my mistake. It save only the current one. Should be changed to save all the sources, > yes (old editor was one source only).
Can this be optional please? It is really anoying, if I only want to write a short Code example for the Forums (for example), I always have to save it. (The SaveFileRequester always pops up.)
Maybe it is possible that this feature is only turned on, after the Code was saved once, and not, if it still says at the Panel?
Would be great...
Timo
> Ha, yes, my mistake. It save only the current one. Should be changed to save all the sources, > yes (old editor was one source only).
Can this be optional please? It is really anoying, if I only want to write a short Code example for the Forums (for example), I always have to save it. (The SaveFileRequester always pops up.)
Maybe it is possible that this feature is only turned on, after the Code was saved once, and not, if it still says at the Panel?
Would be great...
Timo
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by ricardo.
IDEAS:
1.- Instead of make *.bak make a numbered version.
Then you could store old versions of your code.
If im coding myapp.pb and i made a change my new saved pb will be myapp_1.1.PB
Or something like that.
2.- The IDE let me store snippets in a small database (will be great!!!) and search into them.
Thanks
Best Regards
Ricardo
Dont cry for me Argentina...
Yes, its annoying.Can this be optional please? It is really anoying, if I only want to write a short Code example for the Forums (for example), I always have to save it. (The SaveFileRequester always pops up.)
IDEAS:
1.- Instead of make *.bak make a numbered version.
Then you could store old versions of your code.
If im coding myapp.pb and i made a change my new saved pb will be myapp_1.1.PB
Or something like that.
2.- The IDE let me store snippets in a small database (will be great!!!) and search into them.
Thanks
Best Regards
Ricardo
Dont cry for me Argentina...
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Revolver.
I just edited my IDE a few days ago to support this very thing(save all source before run/compile). Here's what I did:
Purebasic IDE.pb
Replace lines 1033-1035:with:
Misc.pb
Replace line 108:with:
Hope this helps!
I just edited my IDE a few days ago to support this very thing(save all source before run/compile). Here's what I did:
Purebasic IDE.pb
Replace lines 1033-1035:
Code: Select all
If AutoSave SaveSourceCode(FileList()\FileName$, 0)
EndIf
Code: Select all
If AutoSave
; Save all source code
*OldElement = @FileList()
OldRichEdit = *RichEditGadget
ResetList(FileList())
While NextElement(FileList())
*RichEditGadget = FileList()\RichEdit
SaveSourceCode(FileList()\FileName$, 0)
Wend
ChangeCurrentElement(FileList(),*OldElement)
*RichEditGadget = OldRichEdit
EndIf
Replace line 108:
Code: Select all
Data$ "Save source file before 'compile/run'"
Code: Select all
Data$ "Save all source files before 'compile/run'"
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by GPI.
look at
viewtopic.php?t=5062
I modified the editor.
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
look at
viewtopic.php?t=5062
I modified the editor.
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB