Posted: Thu Apr 17, 2003 10:25 pm
Restored from previous forum. Originally posted by GPI.
No, i'm not crazy. I only workd 3 Days (and one night) on this:
http://caosandkin.bei.t-online.de/pureb ... -gpi-4.zip
Whats new:
I complete remove the "ProcedureParser.pb" and include the "FindAllNames.pb".
FOLDING
You read right, the Editor can now folding.
Press Ctrl+D and a existing fold is unfold or the procedure or current selection would be folded.
A folded line is write-protected. Also a copy is forbitten, if parts of a fold is selected.
The linenumber in the Statusbar are corrected.
You can also fold procedures by double-click on the word "Procedure" or in the Procedure-Browser. Folds can be unfolded by doubleclick on the fold.
In menu are the functions "Folding all" (all procedures will be folded) and "UnFolding all" (all folds will be unfolded). This functions are slow. So please wait.
At the moment you can fold a fold.
The folds are marked with ';f«:' and ';f»:' at the lineend, so older editors can open the code without any problems. Also search find folded text.
AutoFormat - (default:on)
If you don't want, that the Editor correct "endif" to "EndIf", disable this function in the preferences.
Extended Format - (default:off)
Open a new Source-Code and activate this function in the Preferences.
Now type this two lines:
#Constant = 20
#CONSTANT = #CoNsTaNt + 10
the second line should be formated to
#Constant = #Constant + 10
The Editor search the first word and take from this the formating style. Also in the right Panel all founded words are listet in 4 diffrent slots.
Var(iables): everything that don't pass in the other slot, normal Variables and Labels
Const(ant): all Constants
Struc(ture): all Structures
Proc(edure): all Procedures, LinkedList and Arrays (DIM)
If you want to change the default Formating-Style, you have to possiblities:
a) DoubleClick in the list on the right Side an change the Style. After pressing Return, the complete Sourecode will be reformated and this will be take time!
b) Found the first word. Change the Style (Attention: After pressing the Cursorkey, Del or Backspace the autoformation will be startet, so delete first, then type) and press then F2. If this word is realy the first entry, then the style is changed (look in the list) and the editor doesn't start to reformate the complete text.
Folded text are not listed in the Slots. But Labels are listed in the Bookmarks.
Two Notes:
a) The Compiler differt between this variables
*Hell
HELL
hell$
Extended Format doesn't. This would be formated to
*Hell
Hell
Hell$
b)The Editor will be slow down on long sources. The writting of new text should be normal, but press fast cursor-up (don't hold). Open the "PureBasic IDE.pb" and test this. At my System i get this times (activated Debugger!)
without extended format: .080 s
with extended format: .380 s
with extended format and all procedures are folt: .190 s.
What do we learn: folt everything or seperate the code in diffrent files.
Extended-Error-Message
If a error is in a Include-File, the editor switch to this file and mark the line.
I don't think, that it was helpfull, that the Include-line of the main-programm is marked...
Find-Window
The position of the Find-Window is now saved. Also, if the Find-Window is open and the Main-Window is active, press ESC to close the Find-Window.
Ctrl+F doesn't take the current word for search. This do now Ctrl+R.
Insert Space
Is removed, because there is a undocumented Function in the Editor (press tab or shift+tab)
Wrong name in the Panel
I hope, this is now corrected. If not, please write me, what excat you have done.
Set as main
Is a extention to the CompileThis - option.
This that to all open SourceCodes, that the active line should be compiled.
Attention: New (opened) SourceCodes don't know this.
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
No, i'm not crazy. I only workd 3 Days (and one night) on this:
http://caosandkin.bei.t-online.de/pureb ... -gpi-4.zip
Whats new:
I complete remove the "ProcedureParser.pb" and include the "FindAllNames.pb".
FOLDING
You read right, the Editor can now folding.
Press Ctrl+D and a existing fold is unfold or the procedure or current selection would be folded.
A folded line is write-protected. Also a copy is forbitten, if parts of a fold is selected.
The linenumber in the Statusbar are corrected.
You can also fold procedures by double-click on the word "Procedure" or in the Procedure-Browser. Folds can be unfolded by doubleclick on the fold.
In menu are the functions "Folding all" (all procedures will be folded) and "UnFolding all" (all folds will be unfolded). This functions are slow. So please wait.
At the moment you can fold a fold.
The folds are marked with ';f«:' and ';f»:' at the lineend, so older editors can open the code without any problems. Also search find folded text.
AutoFormat - (default:on)
If you don't want, that the Editor correct "endif" to "EndIf", disable this function in the preferences.
Extended Format - (default:off)
Open a new Source-Code and activate this function in the Preferences.
Now type this two lines:
#Constant = 20
#CONSTANT = #CoNsTaNt + 10
the second line should be formated to
#Constant = #Constant + 10
The Editor search the first word and take from this the formating style. Also in the right Panel all founded words are listet in 4 diffrent slots.
Var(iables): everything that don't pass in the other slot, normal Variables and Labels
Const(ant): all Constants
Struc(ture): all Structures
Proc(edure): all Procedures, LinkedList and Arrays (DIM)
If you want to change the default Formating-Style, you have to possiblities:
a) DoubleClick in the list on the right Side an change the Style. After pressing Return, the complete Sourecode will be reformated and this will be take time!
b) Found the first word. Change the Style (Attention: After pressing the Cursorkey, Del or Backspace the autoformation will be startet, so delete first, then type) and press then F2. If this word is realy the first entry, then the style is changed (look in the list) and the editor doesn't start to reformate the complete text.
Folded text are not listed in the Slots. But Labels are listed in the Bookmarks.
Two Notes:
a) The Compiler differt between this variables
*Hell
HELL
hell$
Extended Format doesn't. This would be formated to
*Hell
Hell
Hell$
b)The Editor will be slow down on long sources. The writting of new text should be normal, but press fast cursor-up (don't hold). Open the "PureBasic IDE.pb" and test this. At my System i get this times (activated Debugger!)
without extended format: .080 s
with extended format: .380 s
with extended format and all procedures are folt: .190 s.
What do we learn: folt everything or seperate the code in diffrent files.
Extended-Error-Message
If a error is in a Include-File, the editor switch to this file and mark the line.
I don't think, that it was helpfull, that the Include-line of the main-programm is marked...
Find-Window
The position of the Find-Window is now saved. Also, if the Find-Window is open and the Main-Window is active, press ESC to close the Find-Window.
Ctrl+F doesn't take the current word for search. This do now Ctrl+R.
Insert Space
Is removed, because there is a undocumented Function in the Editor (press tab or shift+tab)
Wrong name in the Panel
I hope, this is now corrected. If not, please write me, what excat you have done.
Set as main
Is a extention to the CompileThis - option.
This that to all open SourceCodes, that the active line should be compiled.
Attention: New (opened) SourceCodes don't know this.
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB