Developers Jos Posted January 13, 2012 Author Developers Share Posted January 13, 2012 Melba, Could you try the current Beta to see if that works for you? Cheers 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 13, 2012 Moderators Share Posted January 13, 2012 Jos, That works fine. Dank je wel. 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...
Developers Jos Posted January 13, 2012 Author Developers Share Posted January 13, 2012 (edited) Did you notice that only the first level folds were working and all higher levels would fail? I appeared that this Director command also ensures the line is displayed and thus undo the previous done FoldToggle: SndSciTECommand("goto:123") where this version leaves the current toggle state alone: SndSciTECommand("extender:dostring editor:GotoLine(123)") Learning something new everyday. Edited January 13, 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 13, 2012 Share Posted January 13, 2012 You're now confusing me.Do you want the lexer changes lexau3.cxx which are part of Scintilla.dll, or do you also want the changes we have made to our SciTE source?When you just an updated version of SciTE you could use our version of Scintilla.dll.JosAU3 Lexer update is attached.wow, Thanks a lot!& Yes If I can get the changes to Scite Source it will be very useful for me, thank you very much for everything! Link to comment Share on other sites More sharing options...
Developers Jos Posted January 13, 2012 Author Developers Share Posted January 13, 2012 (edited) Attached the diff-files of the modifications we have made. It also contains the changes I have made to the Output lexer (other) to support Double Quoted filenames. This solves a problem in the current release where double clicking an error doesn't work when the filename contains a (. The rest is mainly to skip including all lexers in the Lite version and Text/credits changes. Edited January 13, 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 13, 2012 Share Posted January 13, 2012 (edited) Thanks a lot, for all your help!Compiled a test version, but I am either missing something/missing a config option/, or maybe its by design:if you have an au3 script like this:#cs Func TEST($Text, $Chars) ; func1 $CharsLen = StringLen($Chars) If StringRight($Text, $CharsLen) = $Chars Then Do Until EndIf EndFunc ;==>TEST Func TEST2($Text, $Chars) ; func 2 $CharsLen = StringLen($Chars) If StringRight($Text, $CharsLen) = $Chars Then Do Until EndIf EndFunc ;==>TEST2 #CEwhen you guys click on #CS, does it fold the code entirely ?cause the result I get After clicking the #CS looks like:#cs EndFunc ;==>TEST Func TEST2($Text, $Chars) ; func 2 $CharsLen = StringLen($Chars) If StringRight($Text, $CharsLen) = $Chars Then Do Until EndIf EndFunc ;==>TEST2 #CEAlso if both funcs are Folded before hitting CTRL+SHIFT+Q, they get unfolded.Can anyone confirm this? Edited January 13, 2012 by Zip Link to comment Share on other sites More sharing options...
Developers Jos Posted January 13, 2012 Author Developers Share Posted January 13, 2012 (edited) The only + shown is in front of the #cs which ends the line before #ce. What is shown for you? Jos Edited January 13, 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...
Valik Posted January 13, 2012 Share Posted January 13, 2012 It may be helpful if you post real screenshots instead of using ASCII art to demonstrate what you mean. Link to comment Share on other sites More sharing options...
jaberwacky Posted January 13, 2012 Share Posted January 13, 2012 I hope this isn't a dumb question. I've noticed that the SciTE4AutoIt3 helpfile has this:*** Target backup directory which defaults to ScriptdirBackup. Any other directory needs to exist or else it will use the default directory!backupDir=Directory=Why have Directory=? Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Zip Posted January 13, 2012 Share Posted January 13, 2012 (edited) yes, screenshots will be do a far better job, doing em now, will post in a sec.Update: OK Heres the screenshots of what I get ; Edited January 13, 2012 by Zip Link to comment Share on other sites More sharing options...
Developers Jos Posted January 13, 2012 Author Developers Share Posted January 13, 2012 This is for Tidy ... right? should be like in the example tidy.ini: * * * Target backup directory backupDir = 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...
jaberwacky Posted January 13, 2012 Share Posted January 13, 2012 Oh, yes, it's for Tidy, sorry. OK, just wondering. Thanks! Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Developers Jos Posted January 13, 2012 Author Developers Share Posted January 13, 2012 (edited) yes, screenshots will be do a far better job, doing em now, will post in a sec.Update: OK Heres the screenshots of what I get ;What happened to the colors. This way I cannot see if its a proper comment or not. Is it properly detected as Comment?EDIT: There is something totally wrong. Even if its not considered as Comment then it should have detected more fold points.You are sure you are using the au3 lexer and proper settings for Autoit3?Jos Edited January 13, 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 13, 2012 Share Posted January 13, 2012 (edited) color wise, I assumed it is detected as a comment, as I defined this grey for the #CS type comments,The top screenshot, & the bottom screenshot are the same code, except in the bottom screen shot, I clicked the #CS.Yes, Definitely using the AU3 lexer.I think I am using the proper settings yes, I think I see what triggers this issue now, I had:fold.comment=2.Is this the expected behavior for fold.comment=2?(& should doing CTRL+SHIFT+Q with it should change fold levels of the code it nests?)EDIT: There is something totally wrong. Even if its not considered as Comment then it should have detected more fold points.Yes, when I add a #CS, (with fold.comment=2 enabled, I get these missing fold points).I have now used the Scite4Autoit zip file installation, with an empty user properties file, & added fold.comment=2,to take these following screenshots, but it shows the exact same problem: Edited January 13, 2012 by Zip Link to comment Share on other sites More sharing options...
Developers Jos Posted January 13, 2012 Author Developers Share Posted January 13, 2012 (edited) I remember now... that should keep folding even in commentblocks. You actually hit on another bug. When you have no line between the Do-Until, the folding doesn't work. (this also counts for other Combo's like while--wend etc) This shows wrong folding: If $a = $b Then Do Until EndIf While this works fine: If $a = $b Then Do ; Until EndIf Edited January 13, 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 13, 2012 Share Posted January 13, 2012 tried this ';' on my above posted code, but not getting a working fold, updated my previous post with more screenshots with Scite4Autoit & an empty user properties file, with only the fold.comment=2 enabled. Link to comment Share on other sites More sharing options...
Developers Jos Posted January 13, 2012 Author Developers Share Posted January 13, 2012 I need to do some debugging to understand what is happening for both the error with a set keywords on 2 lines without any other line between them, and why the InComment folding work differently from regular. 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 13, 2012 Share Posted January 13, 2012 (edited) OK, thanks a lot for looking into this, & the great work, & help. Edited January 13, 2012 by Zip Link to comment Share on other sites More sharing options...
Valik Posted January 13, 2012 Share Posted January 13, 2012 I need to do some debugging to understand what is happening for both the error with a set keywords on 2 lines without any other line between them,I'm not sure this one is too important. The code constructs that produce the folding issue should never be written. Yes it's valid code but it's poor code as in most (all?) cases it will be a no-op loop that just uses all available cycles on that core. Link to comment Share on other sites More sharing options...
Developers Jos Posted January 13, 2012 Author Developers Share Posted January 13, 2012 Agree and that is why it never was reported before, but the folding inside commentblocks is for sure not correct and I either support it correctly or remove support. Either way, I got both issues fixed but will first do more testing before making a Beta available of Scintilla.dll for others to help testing. 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...
Recommended Posts