Page 1 of 2

[Implemented] Suggest "Parent" compiler option

Posted: Tue Apr 30, 2002 2:38 pm
by BackupUser
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

Posted: Tue Apr 30, 2002 8:47 pm
by BackupUser
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.

Posted: Tue Apr 30, 2002 9:25 pm
by BackupUser
Restored from previous forum. Originally posted by tinman.
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.
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.

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.

Posted: Thu May 02, 2002 8:19 am
by BackupUser
Restored from previous forum. Originally posted by Stan.
...
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.
...
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 ...

Bests.

Stan



Since I attended an MS course, my programs no longer have bugs ... just hidden "features" !! [ PB. registered user ]

Posted: Thu May 02, 2002 8:37 am
by BackupUser
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

Posted: Fri May 03, 2002 9:41 am
by BackupUser
Restored from previous forum. Originally posted by Stan.
> 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
Hi PB,

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 ]

Posted: Fri May 03, 2002 10:10 am
by BackupUser
Restored from previous forum. Originally posted by naw.

- Wouldn't this be the ideal sort of function for the PB ToolBox (thanks Paul - use it all the time :wink:?

I believe the Compiler can be called without invoking the editor...

Ta - N

Posted: Fri May 03, 2002 10:16 am
by BackupUser
Restored from previous forum. Originally posted by tinman.
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
Hopefully someone other than Fred can add features to the editor (I'm sure he would be happy for contributions like this :) since the source is being made available.
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
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.

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.

Posted: Fri May 03, 2002 12:25 pm
by BackupUser
Restored from previous forum. Originally posted by Stan.

Hi Tinman,

Hopefully someone other than Fred can add features to the editor (I'm sure he would be happy for contributions like this :) since the source is being made available.
Great ! So here is a short wish list :
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,

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".
That's true, but still we bought PB even if its editor is limited because it
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 ]

Posted: Fri May 03, 2002 1:13 pm
by BackupUser
Restored from previous forum. Originally posted by El_Choni.



Great ! So here is a short wish list :
Basic :
- Block indent ( or unindent ),
This is already present ¿?
- 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?)
- 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,
I agree.
- Braces, parentheses, programming structures matching,
If you mean using { and } like in C, I don't agree.
- Column mode,
I don't understand.
Power user :
- Pattern matching for Find/Replace,
- Macros,
Yeah, it would be fine.

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

Posted: Sat May 04, 2002 12:40 am
by BackupUser
Restored from previous forum. Originally posted by PB.
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
True... I understand they are busy people. But I don't want to use an
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

Posted: Sat May 04, 2002 12:43 am
by BackupUser
Restored from previous forum. Originally posted by PB.

> Wouldn't this be the ideal sort of function for the PB ToolBox

Hmm, possibly... I'll see what I can do. An update for PBToolBox should be out
very shortly too (mainly bugfixes).


PB - Registered PureBasic Coder

Posted: Mon May 06, 2002 10:38 am
by BackupUser
Restored from previous forum. Originally posted by Stan.


Great ! So here is a short wish list :
Basic :
- Block indent ( or unindent ),

This is already present ¿?
Yes if you are typing in a program, wht I meant was a way to select a block
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 ...).
- 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?)

It may be too much for the average coder, but for the under average coder who
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 ...).
- Braces, parentheses, programming structures matching,


If you mean using { and } like in C, I don't agree.
No, I just mean that for instance if you put the cursor over a closing
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"

...
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
Would be very interesting getting both a better editor and great code to study,
hope it will happen !!!

Bests.

Stan


Since I attended an MS course, my programs no longer have bugs ... just hidden "features" !! [ PB. registered user ]

Posted: Mon May 06, 2002 11:00 am
by BackupUser
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

Posted: Mon May 06, 2002 2:59 pm
by BackupUser
Restored from previous forum. Originally posted by Stan.

Hi 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
Thanks for the indenting tip, it does work great. Multiple undos work as
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 ]