please do not make "Save" a new keyword... maybe you could re-use UI-keyword "Kill"...
I'm trying to integrate Profile Grid directly in thinAir. Maybe.
Regarding file, yes I thought about leaving so many files on disk.
I think I will solve using something like: #PROFILE ON [SAVE]
With SAVE option, file will remain on disk.
Without SAVE, file will be read and deleted immediately.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
please do not make "Save" a new keyword... maybe you could re-use UI-keyword "Kill"...
I think there are missing some Forum-sections as beta-testing and support
Just to let you know I'm not sleeping
I'm working on the following items:
- exadecimal can now indicated in C notation using 0x...
PrintL 0x0008 PrintL 0x000C PrintL 0x0010 %MAXIMUM_D = 0XFFFFFFFF As DWord %MAXIMUM_L = 0X7FFFFFFF As Long %MINIMUM_L = 0X80000000 As Long- Equates can now be indicated with or without = sign. The following are now identically handled:
%MAXIMUM_D = 0XFFFFFFFF As DWord %MAXIMUM_D 0XFFFFFFFF As DWord- Left and Right byte shifting like in C using << and >>:
%MC_MTHT_NOWHERE = (1 << 0) %MC_MTHT_ONITEMICON = (1 << 1) %MC_MTHT_ONITEMLABEL = (1 << 2) %MC_MTHT_ONITEMCLOSEBUTTON = (1 << 3)- thinAir ... I'm moving from CodeMax current source editor (very good but also very old and never maintained since ... many years) to more feature rich and well maintained Scintilla Code editor.
I'm experimenting it inside thinAir New File template window. I've already reached a good set of features (see attached image) like full folding at any level and real time checking (while typing) of nested levels.
I'm working now on creating a Lexer for thinBasic language. Scintilla has already some internal Lexers similar to thinBasic (VB, FreeBasic, Blitz Basic, PowerBasic) but none it satisfyingly me and I need to have some compromises. With our own Lexer we will be able to add any feature we will need.
If all will went fine, next thinAir will have this feature in Template window and when stabilized in all MDI windows.
Ciao
Eros
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Very good.
Especially i like the idea to re-new thinAir to fit "thinBasic 2.0"-standards
(guess my thinICE-project gave some kick into that direction).
I hope for an auto-complete feature, project-oriented clearly structured code-browser & global variable-view which saves a lot of browsing through different script-units and for an editor that helps us coding faster and reduces avoideable errors as much as possible.
I think there are missing some Forum-sections as beta-testing and support
Yeeees: thinICE gave me a kick in ... the right place (my ass)
Anyway, very excited to add those new feature. Scintilla is very powerful but also a little bit complex to understand at first.
I think I've mastered the basis and I'm quite ready to add in editor window.
The rest will come and auto-completion will be the next.
Now I'm concentrating on syntax coloring without the need to create a specific Lexer DLL in C.
I think I'm on the right track.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
EDIT:
post moved to
http://www.thinbasic.com/community/s...2552#post92552
Last edited by ReneMiner; 08-01-2016 at 12:29.
I think there are missing some Forum-sections as beta-testing and support
Scintilla edit control is rally giving me an headache.
I'm trying to find a way to apply folding and syntax highlight without the need to create a C++ lexer specific for thinBasic.
I did it and is working quite well but as soon as the document is more than 20k/30k lines of code it starts to slow down quite dramatically.
I will set some options to switch folding and coloring on/off but that's not the way to solve the situation.
Anyway, quite ready to release it in a couple of day at least in script template preview (File/New ...)
Will see.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
for the folding: there are countless possibilities of it, like Type/End Type, Select Case/End Select, For/Next, TBGL_ClearFrame/TBGL_Drawframe,... etc. etc. etc.
I don't need to fold anything if codebrowser-tree (which is some kind of "folding" too) would give me enough overview
The only really useful way to fold by default were Subs & (Callback-) Functions
- but if it's a multiline-function-header, it were too cumbersome for me to unfold every time when i need to check for parameters on the second line and i would not use the ability to fold...
Also folding hides a part of the code mostly...
So I vote for "no wild default-folding of anything that can be folded" -
but just smart, user-placed "fold-mark-comments" like this example:
where '{ and '} mark the start and end of the code-part to fold.Function myFun(Byval A As Number, _ Optional Byval B As String _ ) As Number '{ some comment here... ' some code here... End Function '} '... or Type tType Private '{ Statics Static X As Long Static Y As Long '} '{ Variables A As String B As String '} Public '{ Methods Function fun() As Long '{ returns fun-factor... End Function '} '} End Type '...
On the line that starts with '{ or '} there might more comment follow on the same line...
Last edited by ReneMiner; 11-01-2016 at 14:21.
I think there are missing some Forum-sections as beta-testing and support
some times when i need to check the corresponding parenthesis i copy the numerical sentence from thinbasic ide to notepad++ which can highlight which parenthesis corresponds to what. such as this (((5/((7*3+2)*4))^2)+(23-5)*(27*2))*3 .
notepad.PNG
so if scintella provides such features will be great.
Yes, there is the possibility.
There is also in current editor but not implemented.
I will add for next release in few days. Right click on a ( or ) and using command "Match brace" will select corresponding brace.
Also using CTRL+1 when cursor is close to a ( or )
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Bookmarks