Developers Jos Posted January 22, 2012 Author Developers Share Posted January 22, 2012 (edited) Currently having too many (3) different Source tree's I am looking at so its easy to make mistakes and the Lite version has a lot of stuff "taken out" to keep it lite. Thanks, Jos Edited January 22, 2012 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Zip Posted January 22, 2012 Share Posted January 22, 2012 (edited) I have update the Current available Beta SciTE v2.28, SciLexer and SciTEGlobal.properties to enable the fold.highlight and us RED for that.@ Jos Just got in & noticed your post, that's great, downloading as I type.Also changed the closing fold level to be consistent meaning it will fold to a single line and not showing the last statement for any fold block.I am considering to add an extra option to support the old folding in case there are many that would like to see that option.at this time it's probably a good idea to version the LexAu3, to make sure were on the same page when discussing it.Here, I have versioned them, as"LexAU3.cxx.V0" with the original I had (2007)"LexAU3.cxx.V1 Before CS Fix" :the Scite4Autoit updated one you gave me when this thread's discussion started,"LexAU3.cxx.V2" #CS fix 1 (not fully working)"LexAU3.cxx.v3" #CS fix 2 (working).So Ill refer to this one you just posted as V4.on V3, as I told you, for my own use, I did end up quickly modifying it slightly to support the fold.highlight,& bring it in line with other languages display wise.(in my case , I did end up just making it use the old fold behavior if fold highlight is disabled, the V3 to V3 + fold highlight quick patch I currently use is attached)I have been doing a lot of changes to the Folding logic including folding inside comments so let me know when there are issue.well in that case, now that you enables support, ill just use the new one! Thanks !Remark: The folding in commentblock doesn't support all folding since a part of the logic is basic on the lexer keyword detection which doesn't work in commentblock as that is all marked a comment.Actually, both related & unrelated to this, here's another thing I thought would be quite useful,if you mean all these comments detected with ';'maybe using a specific definition for the currently unused comment.box can bring in another viable comment type,which will also serve as a different type comment, & has its own color definition as often used.In Autoit's case can be quite useful to tell between user comments, & udf/function comments etc.ps: The latest Lexau3.cxx is also available in the Beta directory.grabbing now, reporting in half an hour max.Scintilla_2_to_6_Au3 v3 to v3 with my Foldhighlight Support.diff.txt Edited January 22, 2012 by Zip Link to comment Share on other sites More sharing options...
Developers Jos Posted January 22, 2012 Author Developers Share Posted January 22, 2012 Actually, both relared & unrelated to this, heres another thing I thought would be quite useful,if you mean all these comments detected with ';'maybe using a specific definition for the currently unused comment.box can bring in another viable comment type,which will also serve as a different type comment, & has its own color definition as often used.In Autoit's case can be quite useful to tell between user comments, & udf/function comments etc.CommentBlock are comments between #cs and #ce. There is no lexing at all happening in single comment lines starting with ";"The 2 different types of comments used to have a slightly different color green but have the same color green in the latest proposed new color scheme.# Comment linestyle.au3.1=fore:#008000,italics# Comment blockstyle.au3.2=fore:#008000,italicsJos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Zip Posted January 22, 2012 Share Posted January 22, 2012 (edited) I hear you, well have to discuss it later, I did not do a good job of describing my full intent, maybe I will later on. Back to the matters at hand, Reporting: I think I notice an End Select/Switch not shown issue when unfolded(had the same problem here at 1st, so noticed it immediately) Edit: Im using Array.au3 so we can use the same source file to test, looking at _ArrayDelete, "Switch UBound($avarray, 0)", with all folds folded & opening this Switch only. Edited January 22, 2012 by Zip Link to comment Share on other sites More sharing options...
Valik Posted January 22, 2012 Share Posted January 22, 2012 Let me put it simpler: When folding a Switch statement the EndSwitch line is folded when either Switch is folded or when the final Case statement is folded. It should only be folded when Switch is folded.Simple reproduction:Switch Case $foo Blah() Case $bar Blah() EndSwitchFold Case $bar and EndSwitch also gets folded - it shouldn't. Link to comment Share on other sites More sharing options...
jmosley708 Posted January 22, 2012 Share Posted January 22, 2012 I just updated to the new Autoit and SciTe and I had to remove everything at least twice. My issue now is all the tools I had before in SciTe are gone. Is there something else I must install to get back Koda, Snippets, etc? Link to comment Share on other sites More sharing options...
Developers Jos Posted January 22, 2012 Author Developers Share Posted January 22, 2012 (edited) I just updated to the new Autoit and SciTe and I had to remove everything at least twice. My issue now is all the tools I had before in SciTe are gone. Is there something else I must install to get back Koda, Snippets, etc?Run the separate SciTE4AutoIt3 installer to get all tools back. Edited January 22, 2012 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Developers Jos Posted January 22, 2012 Author Developers Share Posted January 22, 2012 Let me put it simpler: When folding a Switch statement the EndSwitch line is folded when either Switch is folded or when the final Case statement is folded. It should only be folded when Switch is folded. Simple reproduction: Switch Case $foo Blah() Case $bar Blah() EndSwitch Fold Case $bar and EndSwitch also gets folded - it shouldn't. Uploaded a fixed SciLexer.dll for both the Beta version of 2.28 and 3.02 to the Beta directories. Thanks Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Valik Posted January 22, 2012 Share Posted January 22, 2012 Jos, what was your intent with the fix? Now EndSwitch is never folded. Was that what you were going for? I only meant that it shouldn't be folded as part of the last Case statement. I did expect it to be folded with Switch, though. It's not a big deal as it is now I just want to make sure it's working as you intend and not still broken. Link to comment Share on other sites More sharing options...
Developers Jos Posted January 22, 2012 Author Developers Share Posted January 22, 2012 Do you have a line after EndSwitch else the folding logic will not detect the EndSwitch keyword. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 22, 2012 Moderators Share Posted January 22, 2012 Jos,I must say I prefer the previous version. This one is too compressed for my liking - for example, I quite liked both the Func/EndFunc lines appearing. It nicely marked the boundaries between the different functions - with the new version it is just a solid block of Funcs. Of course I can live with it, but I thought you might appreciate some feedback. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Valik Posted January 22, 2012 Share Posted January 22, 2012 Do you have a line after EndSwitch else the folding logic will not detect the EndSwitch keyword.Good catch. I did not. It works fine with the newline. Link to comment Share on other sites More sharing options...
Valik Posted January 22, 2012 Share Posted January 22, 2012 Jos,I must say I prefer the previous version. This one is too compressed for my liking - for example, I quite liked both the Func/EndFunc lines appearing. It nicely marked the boundaries between the different functions - with the new version it is just a solid block of Funcs. Of course I can live with it, but I thought you might appreciate some feedback. M23So the boundary becomes the end of line instead of end of the next line. Seems like nothing has changed on that front, just a minor adjustment to muscle memory to look in the right place for the same boundary. Link to comment Share on other sites More sharing options...
Developers Jos Posted January 22, 2012 Author Developers Share Posted January 22, 2012 (edited) I must say I prefer the previous version. This one is too compressed for my liking - for example, I quite liked both the Func/EndFunc lines appearing. It nicely marked the boundaries between the different functions - with the new version it is just a solid block of Funcs. It is reasonable easy to make the old folding available again by means of an properties setting, but also feel it is not as consequent as it should be because some blocks show the last line and some don't like for example #regions.I must say I like the current Beta standard behavior also with the fold.highlight switched on (thanks to Zip for mentioning it). Edited January 22, 2012 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Zip Posted January 22, 2012 Share Posted January 22, 2012 @Jos, nah man, thank you for listening & doing the fixes so fast. if possible, an updated lexau3, in the beta dir, will help me keep up to date. Link to comment Share on other sites More sharing options...
Developers Jos Posted January 22, 2012 Author Developers Share Posted January 22, 2012 if possible, an updated lexau3, in the beta dir, will help me keep up to date.Did you check the current one ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Zip Posted January 22, 2012 Share Posted January 22, 2012 oops hehe , will do Link to comment Share on other sites More sharing options...
Valik Posted January 23, 2012 Share Posted January 23, 2012 Umm. I mentioned fold.highlight well before Zip. I'm just saying.God damn old people and their bad memories/eyesight. Link to comment Share on other sites More sharing options...
Zip Posted January 23, 2012 Share Posted January 23, 2012 (edited) @Jos, OK, had some time today & worked with some of my Au3 code,did have some instances where highlights are being expanded beyond the closing tag,& last close tag not folding,( & it did start to annoy me), wrote this small patch to get rid of these issues (attached).LexAu3 v5 to V5+ FIX Last lines end tags not folding + fold highlight might show invalid range.diff.txt Edited January 23, 2012 by Zip Link to comment Share on other sites More sharing options...
Chimaera Posted January 23, 2012 Share Posted January 23, 2012 God damn old people and their bad memories/eyesight.Oi you need us old farts so you have someone to shout at cos we cant hear you .. MvGulik 1 If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
Recommended Posts