[Implemented] Suggest "Parent" compiler option
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
[Implemented] Suggest "Parent" compiler option
Restored from previous forum. Originally posted by PB.
Hi Fred,
As someone who works on several PureBasic sources that are IncludeFile'd into
a main "parent" file, it would be nice to have a compiler option that specifies
a separate "parent" file to start compiling from. At the moment, if I am editing
an IncludeFile source, I have to save it, then load the main source, to start
the actual compilation. But if a compiler option existed where we could specify
the "parent" file, then the editor would NOT compile from the current file but
from the "parent" file instead. And, naturally, if nothing was specified in
this "parent" file setting, then the editor would just compile the current file.
Know what I mean?
PB - Registered PureBasic Coder
Hi Fred,
As someone who works on several PureBasic sources that are IncludeFile'd into
a main "parent" file, it would be nice to have a compiler option that specifies
a separate "parent" file to start compiling from. At the moment, if I am editing
an IncludeFile source, I have to save it, then load the main source, to start
the actual compilation. But if a compiler option existed where we could specify
the "parent" file, then the editor would NOT compile from the current file but
from the "parent" file instead. And, naturally, if nothing was specified in
this "parent" file setting, then the editor would just compile the current file.
Know what I mean?
PB - Registered PureBasic Coder
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by freak.
I agree with PB, this would be very useful, becouse when my source code gets
to big, I'm splitting it into several IncludeFiles.
And always loading the main prog and running it is very anoying.
Timo
--
A debugged program is one for which you have not yet found the conditions that make it fail.
I agree with PB, this would be very useful, becouse when my source code gets
to big, I'm splitting it into several IncludeFiles.
And always loading the main prog and running it is very anoying.
Timo
--
A debugged program is one for which you have not yet found the conditions that make it fail.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by tinman.
Although, the editor I use has multiple windows and I still keep trying to compile my includefiles
--
It's not minimalist - I'm increasing efficiency by reducing input effort.
Didn't Fred say the source for the editor would be released with PB 3.10? Perhaps some enterprising person could add tabs along the top for multiple source files? At least then you just have to click back to the parent file.I agree with PB, this would be very useful, becouse when my source code gets
to big, I'm splitting it into several IncludeFiles.
And always loading the main prog and running it is very anoying.
Although, the editor I use has multiple windows and I still keep trying to compile my includefiles

--
It's not minimalist - I'm increasing efficiency by reducing input effort.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Stan.
Please wizards of PB, don't reinvent the wheel, you have so many
more useful things to do ...
Bests.
Stan
Since I attended an MS course, my programs no longer have bugs ... just hidden "features" !! [ PB. registered user ]
This exactly what you can do using ConTEXT ( Freeware Editor ) ......
Didn't Fred say the source for the editor would be released with PB 3.10? Perhaps some enterprising person could add tabs along the top for multiple source files? At least then you just have to click back to the parent file.
...
Please wizards of PB, don't reinvent the wheel, you have so many
more useful things to do ...
Bests.
Stan
Since I attended an MS course, my programs no longer have bugs ... just hidden "features" !! [ PB. registered user ]
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> This exactly what you can do using ConTEXT ( Freeware Editor ) ...
> Please wizards of PB, don't reinvent the wheel, you have so many
> more useful things to do ...
It's not a case of reinventing the wheel. I like the PureBasic editor; it's
what I paid for and it works very well for me, despite the lack of a few handy
features. I don't want to use a third-party editor, free or not. Just because
other editors exist doesn't mean the PureBasic editor should be abandoned.
PB - Registered PureBasic Coder
Edited by - PB on 02 May 2002 09:48:06
> This exactly what you can do using ConTEXT ( Freeware Editor ) ...
> Please wizards of PB, don't reinvent the wheel, you have so many
> more useful things to do ...
It's not a case of reinventing the wheel. I like the PureBasic editor; it's
what I paid for and it works very well for me, despite the lack of a few handy
features. I don't want to use a third-party editor, free or not. Just because
other editors exist doesn't mean the PureBasic editor should be abandoned.
PB - Registered PureBasic Coder
Edited by - PB on 02 May 2002 09:48:06
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Stan.
Sorry about my being too abrupt ... But you asked for a feature which does
exist in ConTEXT. I am not advocating to abandon the PB Editor, but I think
that Fred (and the PB Wizard ...) have only 24h/day to work (as superhuman,
they don't need to sleep, eat or anything else ), I as a newby
benefit more from their examples on how to use PB features, WIN API, and
clever algorithms (because there is no other source for such things), than
I would from them adding features to the PB Editor, which is only a tool to
write programs. I do admit it is a bit selfish, but I have rather use an
external already mature editor to write programs based on the enormous amount
of knowledge I can gather from this forum, than having the best editor bundled
with PB and nothing interesting to write with it (sure if the PB editor code
is available I may also learn from it although I think I am not advanced
enough for benefiting from it, you are obviously on the other side of that
fence ... so our needs may be different).
Bests.
Stan
Since I attended an MS course, my programs no longer have bugs ... just hidden "features" !! [ PB. registered user ]
Hi PB,> This exactly what you can do using ConTEXT ( Freeware Editor ) ...
> Please wizards of PB, don't reinvent the wheel, you have so many
> more useful things to do ...
It's not a case of reinventing the wheel. I like the PureBasic editor; it's
what I paid for and it works very well for me, despite the lack of a few handy
features. I don't want to use a third-party editor, free or not. Just because
other editors exist doesn't mean the PureBasic editor should be abandoned.
PB - Registered PureBasic Coder
Edited by - PB on 02 May 2002 09:48:06
Sorry about my being too abrupt ... But you asked for a feature which does
exist in ConTEXT. I am not advocating to abandon the PB Editor, but I think
that Fred (and the PB Wizard ...) have only 24h/day to work (as superhuman,
they don't need to sleep, eat or anything else ), I as a newby
benefit more from their examples on how to use PB features, WIN API, and
clever algorithms (because there is no other source for such things), than
I would from them adding features to the PB Editor, which is only a tool to
write programs. I do admit it is a bit selfish, but I have rather use an
external already mature editor to write programs based on the enormous amount
of knowledge I can gather from this forum, than having the best editor bundled
with PB and nothing interesting to write with it (sure if the PB editor code
is available I may also learn from it although I think I am not advanced
enough for benefiting from it, you are obviously on the other side of that
fence ... so our needs may be different).
Bests.
Stan
Since I attended an MS course, my programs no longer have bugs ... just hidden "features" !! [ PB. registered user ]
-
- 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 tinman.
since the source is being made available.
And it would not look too good for PB either if something like this was in the manual - "You should go and find yourself another editor because this one is very basic".
--
It's not minimalist - I'm increasing efficiency by reducing input effort.
Hopefully someone other than Fred can add features to the editor (I'm sure he would be happy for contributions like thisthat Fred (and the PB Wizard ...) have only 24h/day to work (as superhuman,
they don't need to sleep, eat or anything else ), I as a newby

I don't think it is the case of having the best editor. The PB editor is quite good as it is, but the lack of multiple editing windows is a bit of a pain, especially since PB allows you to create multi-source programs very easily. I guess you can always run multiple instances, which is what I used to do before I switched editors. That is about the only real serious feature it is missing (that I can think of ATM). I think advanced things like completely customizable menus, shortcuts, etc are best left to "power" text editors.benefit more from their examples on how to use PB features, WIN API, and
clever algorithms (because there is no other source for such things), than
I would from them adding features to the PB Editor, which is only a tool to
write programs. I do admit it is a bit selfish, but I have rather use an
external already mature editor to write programs based on the enormous amount
of knowledge I can gather from this forum, than having the best editor bundled
And it would not look too good for PB either if something like this was in the manual - "You should go and find yourself another editor because this one is very basic".
--
It's not minimalist - I'm increasing efficiency by reducing input effort.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Stan.
Hi Tinman,
Basic :
- Grouping multiples files in a project, you can open in one click instead
of loading files one by one (same for saving),
- Undo history (I make many mistakes I don't allways discover at first ... ),
- Block indent ( or unindent ),
- Commenting and uncommenting blocks,
- Jump tags (to go from one place to an other in a source ), or better
code folding,
- Braces, parentheses, programming structures matching,
- Column mode,
Power user :
- Pattern matching for Find/Replace,
- Macros,
is a very good compiler, which allows to make space and speed efficient
programs, and I don't say stop working on that editor but you have a limited
amount of time so please concentrate on things which to me seem more important
(for instance the written documentation : The Pure Basic Manual is out of
date, CHM help is certainly a nice thing, but having a paper doc. where you
can scribble your remarks and, mind you, read in your bed when your beloved one
is also reading ... is a great [missing] asset : and this can only be done by
Fred, whereas writing an editor does not need a PB Guru ... ). Please, don't
misunderstand me, I am just saying I can live with the PB editor as it is (even
if I use ConTEXT, but it is sometimes very difficult to fully use PB because
the paper doc is at least incomplete.
Bests.
Stan
Since I attended an MS course, my programs no longer have bugs ... just hidden "features" !! [ PB. registered user ]
Hi Tinman,
Great ! So here is a short wish list :
Hopefully someone other than Fred can add features to the editor (I'm sure he would be happy for contributions like thissince the source is being made available.
Basic :
- Grouping multiples files in a project, you can open in one click instead
of loading files one by one (same for saving),
- Undo history (I make many mistakes I don't allways discover at first ... ),
- Block indent ( or unindent ),
- Commenting and uncommenting blocks,
- Jump tags (to go from one place to an other in a source ), or better
code folding,
- Braces, parentheses, programming structures matching,
- Column mode,
Power user :
- Pattern matching for Find/Replace,
- Macros,
That's true, but still we bought PB even if its editor is limited because it
And it would not look too good for PB either if something like this was in the manual - "You should go and find yourself another editor because this one is very basic".
is a very good compiler, which allows to make space and speed efficient
programs, and I don't say stop working on that editor but you have a limited
amount of time so please concentrate on things which to me seem more important
(for instance the written documentation : The Pure Basic Manual is out of
date, CHM help is certainly a nice thing, but having a paper doc. where you
can scribble your remarks and, mind you, read in your bed when your beloved one
is also reading ... is a great [missing] asset : and this can only be done by
Fred, whereas writing an editor does not need a PB Guru ... ). Please, don't
misunderstand me, I am just saying I can live with the PB editor as it is (even
if I use ConTEXT, but it is sometimes very difficult to fully use PB because
the paper doc is at least incomplete.
Bests.
Stan
Since I attended an MS course, my programs no longer have bugs ... just hidden "features" !! [ PB. registered user ]
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by El_Choni.
Once the editor's source is known, it could become a project for the community to add those (and other) features. And, for features that some people want and others don't, we can add a switch in the Preferences menu. Would it be Ok, Fred?
Have a nice day,
El_Choni
This is already present ¿?Great ! So here is a short wish list :
Basic :
- Block indent ( or unindent ),
Undo works (you mean actions history like in PhotoShop? Isn't that a bit too complex for the average coder needings?)- Undo history (I make many mistakes I don't allways discover at first ... ),
I agree.- Commenting and uncommenting blocks,
- Grouping multiples files in a project, you can open in one click instead
of loading files one by one (same for saving),
- Commenting and uncommenting blocks,
- Jump tags (to go from one place to an other in a source ), or better
code folding,
If you mean using { and } like in C, I don't agree.- Braces, parentheses, programming structures matching,
I don't understand.- Column mode,
Yeah, it would be fine.Power user :
- Pattern matching for Find/Replace,
- Macros,
Once the editor's source is known, it could become a project for the community to add those (and other) features. And, for features that some people want and others don't, we can add a switch in the Preferences menu. Would it be Ok, Fred?
Have a nice day,
El_Choni
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
external editor for coding in PureBasic, that's all. Maybe when the
source is released, I will attack it and make it suit my needs.
PB - Registered PureBasic Coder
True... I understand they are busy people. But I don't want to use anSorry about my being too abrupt ... But you asked for a feature which does
exist in ConTEXT. I am not advocating to abandon the PB Editor, but I think
that Fred (and the PB Wizard ...) have only 24h/day to work
external editor for coding in PureBasic, that's all. Maybe when the
source is released, I will attack it and make it suit my needs.
PB - Registered PureBasic Coder
-
- 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 Stan.
of text and indenting it after I wrote it (I know it is a bad practice but I
don't indent directly when writing, because when I type long lines it is easier
that way : you see more of the line at once ...).
makes many changes at once (and don't test it right away ...), it is very
interesting (it works as long as you do not quit the editor or save your
program by yourself, fine for single file programs, but if you use multiple
files you are dead meat ...).
parenthesis the corresponding opening parentesis could be seen (by a change
of color for instance), easier than counting open parenthesis ...
hope it will happen !!!
Bests.
Stan
Since I attended an MS course, my programs no longer have bugs ... just hidden "features" !! [ PB. registered user ]
Yes if you are typing in a program, wht I meant was a way to select a block
Great ! So here is a short wish list :
Basic :
- Block indent ( or unindent ),
This is already present ¿?
of text and indenting it after I wrote it (I know it is a bad practice but I
don't indent directly when writing, because when I type long lines it is easier
that way : you see more of the line at once ...).
It may be too much for the average coder, but for the under average coder who- Undo history (I make many mistakes I don't allways discover at first ... ),
Undo works (you mean actions history like in PhotoShop? Isn't that a bit too complex for the average coder needings?)
makes many changes at once (and don't test it right away ...), it is very
interesting (it works as long as you do not quit the editor or save your
program by yourself, fine for single file programs, but if you use multiple
files you are dead meat ...).
No, I just mean that for instance if you put the cursor over a closing- Braces, parentheses, programming structures matching,
If you mean using { and } like in C, I don't agree.
parenthesis the corresponding opening parentesis could be seen (by a change
of color for instance), easier than counting open parenthesis ...
- Column mode,
I don't understand.
Code: Select all
; Pseudo code
#Gad_open = 1
#Gad_close = 2
#Gad_quit = 3
Dim Gad_str( 10 )
Gad_str( ) = "str 1"
; Copy line above to get :
Gad_str( ) = "str 1"
Gad_str( ) = "str 1"
Gad_str( ) = "str 1"
; Now being able to copy the #Gad... up (and not including the =) in column
mode : selected text would be :
#Gad_open
#Gad_close
#Gad_quit
; Paste in column mode to obtain
Gad_str( #Gad_open ) = "str 1"
Gad_str( #Gad_close ) = "str 1"
Gad_str( #Gad_quit ) = "str 1"
Would be very interesting getting both a better editor and great code to study,...
Once the editor's source is known, it could become a project for the community to add those (and other) features. And, for features that some people want and others don't, we can add a switch in the Preferences menu. Would it be Ok, Fred?
Have a nice day,
El_Choni
hope it will happen !!!
Bests.
Stan
Since I attended an MS course, my programs no longer have bugs ... just hidden "features" !! [ PB. registered user ]
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> wht I meant was a way to select a block of text and indenting it after
> I wrote it
You can already do this: just highlight the block of text and press Tab or
Shift+Tab...
Also, multiple undos work also... I use them all the time.
PB - Registered PureBasic Coder
> wht I meant was a way to select a block of text and indenting it after
> I wrote it
You can already do this: just highlight the block of text and press Tab or
Shift+Tab...
Also, multiple undos work also... I use them all the time.
PB - Registered PureBasic Coder
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Stan.
Hi PB,
long as you don't quit the editor, that's perfectly right ; what I wish
is being able to undo after quitting and reloading ... : I am often trying
to play with the Win API and more often than not I end up with a BSOD ...
(not PureBasic fault : entirely mine ... but still my last edits are undoable
... when it's 2 AM it can be frustrating even if I know I am the one to
blame).
Bests.
Stan
Since I attended an MS course, my programs no longer have bugs ... just hidden "features" !! [ PB. registered user ]
Hi PB,
Thanks for the indenting tip, it does work great. Multiple undos work as> wht I meant was a way to select a block of text and indenting it after
> I wrote it
You can already do this: just highlight the block of text and press Tab or
Shift+Tab...
Also, multiple undos work also... I use them all the time.
PB - Registered PureBasic Coder
long as you don't quit the editor, that's perfectly right ; what I wish
is being able to undo after quitting and reloading ... : I am often trying
to play with the Win API and more often than not I end up with a BSOD ...
(not PureBasic fault : entirely mine ... but still my last edits are undoable
... when it's 2 AM it can be frustrating even if I know I am the one to
blame).
Bests.
Stan
Since I attended an MS course, my programs no longer have bugs ... just hidden "features" !! [ PB. registered user ]