I was till I found out in your second post you were using this new function... sorry about that .Ah hah, I thought you were being serious about wanting a snippet.
SciTE v 3.20 Beta available
#21
Posted 17 January 2012 - 04:45 PM
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
#22
Posted 22 January 2012 - 02:54 PM
I have update the Current available Beta SciTE v2.28, SciLexer and SciTEGlobal.properties to enable the fold.highlight and us RED for that.
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.
I have been doing a lot of changes to the Folding logic including folding inside comments so let me know when there are issue.
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.
Edited by Jos, 22 January 2012 - 02:55 PM.
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
#23
Posted 23 January 2012 - 03:24 AM
I use Programmer's Notepad ONLY for it's good Project Manager.
Would it be possible to add a project manager, just like SciteJump or Function Popup???
Thanks
#24
Posted 23 January 2012 - 07:05 AM
Write and maintain a stable Project Manager and it will be added I thinkI Really think that the only that's missing from Scite is a project manager!
I use Programmer's Notepad ONLY for it's good Project Manager.
Would it be possible to add a project manager, just like SciteJump or Function Popup???
Thanks
#25
Posted 24 January 2012 - 08:00 PM
This can be done via LUA by using OnUpdateUI(). It will require some proper testing to ensure it won't be constantly lexing the output shown in the Outputpane.Finally about the inline errors. Those are implemented via something called Annotations. It may be something that can be done via Lua. Also I've discovered that there is a menu command (Tools -> Next Message) that will automatically jump to a message (moves the cursor, boo) and show the inline errors (yay). It may be possible to do something like wrap invoking Au3Check in Lua so that we can do fun things like automatically show the inline errors after running Au3Check as well as automatically clearing orphaned errors by just running Au3Check cleanly. It may also be possible to save/restore the current position so it's a little less annoying.
Just for having a play with this I started to add some Annotations logic in AutoIt3Wrapper, were I capture the au3check output.
I am not so sure this is really going to improve things but got some basics working.
Edited by Jos, 24 January 2012 - 08:01 PM.
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
#26
Posted 24 January 2012 - 08:06 PM
Br,
UEZ
The own fart smells best! ✌
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯
#27
Posted 24 January 2012 - 08:11 PM
Type IfThen and hit Space ..... the abbrev magic should happen.If I type IfThen in SciTE then it will become red and I cannot be modified only delete any character.
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
#28
Posted 24 January 2012 - 08:25 PM
THANKS!
Br,
UEZ
Edited by UEZ, 24 January 2012 - 08:25 PM.
The own fart smells best! ✌
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯
#29
Posted 24 January 2012 - 08:28 PM
There is a real nice long list of implemented Abbreviations which can be found in the SciTE4AutoIt3 helpfile.Ahhhhh, that's really magic.
It is one of those features that probably many aren't aware of its existence.
Jos
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
#30
Posted 24 January 2012 - 08:37 PM
Now I've to remember all the abbreviations and use it when typing some code lines.
Very useful!
Br,
UEZ
The own fart smells best! ✌
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯
#31
Posted 24 January 2012 - 09:27 PM
Jos, right now I'm more interested in understanding why warnings are not showing up styled correctly. Errors work fine but not warnings. I don't know if it's a SciTE bug or if it doesn't like how Au3Check formats it's warnings. Sort that out and then I can think up something on how to get the inline errors to show up when desired.This can be done via LUA by using OnUpdateUI(). It will require some proper testing to ensure it won't be constantly lexing the output shown in the Outputpane.
Just for having a play with this I started to add some Annotations logic in AutoIt3Wrapper, were I capture the au3check output.
I am not so sure this is really going to improve things but got some basics working.![]()
#32
Posted 24 January 2012 - 09:30 PM
Warnings are being shown with the same color as Errors for me.Jos, right now I'm more interested in understanding why warnings are not showing up styled correctly. Errors work fine but not warnings. I don't know if it's a SciTE bug or if it doesn't like how Au3Check formats it's warnings. Sort that out and then I can think up something on how to get the inline errors to show up when desired.
Do you have an example where it doesn't work so I can check if it has something to do with the lexing?
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
#33
Posted 24 January 2012 - 09:59 PM
I have just reinstalled v3.3.8.0 and SciTE4AutoIt3 (including the 3.02 beta) and I seem to have lost a lot of your "magic". Abbreviations no longer colour and can only be expanded by Ctrl-B and not SPACE; the colours no longer work in the lower pane:
ConsoleWrite('! = Bold Red' & @LF) ConsoleWrite('> = Blue' & @LF) ConsoleWrite('- = Orange' & @LF) ConsoleWrite('+ = Green' & @LF) ConsoleWrite('(5) : = Red (jump to line 5 when double-clicked)' & @LF) ConsoleWrite('Start with String or Integer then ' & @TAB & '6' & ' = Pink (jump to line 6 when double-clicked)' & @LF) ConsoleWrite('(' & @ScriptLineNumber & ') : = Red (jump to line ' & @ScriptLineNumber & ' when double-clicked)' & @CRLF)
The "jump to line" still works, but it is all mono-chrome.
What have I done - and how do I get it back!
M23
Toast - Small GUIs which pop out of the Systray - Marquee - Scrolling tickertape GUIs
Scrollbars - Automatically sized scrollbars with a single command - GUIFrame - Subdivide GUIs into many adjustable frames
GUIExtender - Extend and retract multiple sections within a GUI - NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes
ChooseFileFolder - Single and multiple selections from specified path tree structure - - Notify - Small notifications on the edge of the display
RecFileListToArray - An alternative to _FileListToArray with user-defined include/exclude masks, maximum recursion level, sorting and displayed path options
GUIListViewEx - Insert, delete, move, drag and sort ListView items
#34
Posted 24 January 2012 - 10:01 PM
Look at this and this is indeed a nice option.Here's what I came up with:
error.inline=1 style.error.1=fore:#FF0000,back:#FFFF00 style.error.2=fore:FFFFFF,back:#FF0000
However, there's a bug either with the error.inline feature or with Au3Check. It detects error messages just fine. It draws the line with a red background and white text. It does not detect warnings, though. It draws those in the style.error.0 style instead of style.error.1.
Note: To see this feature in action insert some errors into a script and then run Au3Check. After it is complete double-click on an error line in the output pane and you should see all the errors show up inline with the document as well.
Edit: Wow the feature needs work. My expected behavior is for the errors to show up after running Au3Check. I also expect re-running Au3Check to clear the errors. Doesn't happen. Instead it's possible to get stuck with an orphaned error in the document which won't go away even though the code has been fixed.
Need to check for a better way to clear the errors because clearing all bookmarks is not a real good option.
Jos
Edited by Jos, 24 January 2012 - 10:36 PM.
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
#35
Posted 24 January 2012 - 10:03 PM
Actually it's probably using style.error.0 which is the default style. Make sure you set up style.error.0, style.error.1 and style.error.2 with unique colors so you can tell them apart. Then test with the following code which produces 1 warning and 2 errors:Warnings are being shown with the same color as Errors for me.
Do you have an example where it doesn't work so I can check if it has something to do with the lexing?
Right now all I'm seeing are lines styled with style.error.0. It seems to be ignoring style.error.1 and style.error.2 (I thought I had style.error.2 working a few days ago).
Edited by Valik, 24 January 2012 - 10:05 PM.
Fixed incorrect property name.
#36
Posted 24 January 2012 - 10:04 PM
Sounds like you are still using the LITE version...What have I done - and how do I get it back!
check your properties files if they are all still in order.
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
#37
Posted 24 January 2012 - 10:06 PM
Example List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _DesktopDimensions() • _DisplayPassword() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringIsValid() • _StringReplaceWholeWord() • _StringStripChar() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • AutoIt Search • AutoIt3 Portable • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • FileInstallr • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIGetBkColor() • LockFile() • PasteBin • SciTE Jump • Signature Creator • WM_COPYDATA • More Examples...Updated: 11/04/2013
#38
Posted 24 January 2012 - 10:13 PM
Looks like we need to change the warning and error messages to lowercase to make it work.[/autoit]
Right now all I'm seeing are lines styled with style.error.0. It seems to be ignoring style.error.1 and style.error.2 (I thought I had style.error.2 working a few days ago).
Just update the outputpane messages to lowercase and double click them again... they change then to the correct color.
Did a quick update of the au3check and that looks better. uploaded a copy to the SciTE beta directory (not updated the version yet)
Need to check for a better way to clear the errors because clearing all bookmarks is not a real good option.
Edited by Jos, 24 January 2012 - 10:37 PM.
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
#39
Posted 24 January 2012 - 10:14 PM
Guess this is rhetoricalJos, did you update SciTEGlobal.properties in the SciTE 3.02 folder too?
Fixed that one as well.
Thanks
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
#40
Posted 24 January 2012 - 10:17 PM
Example List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _DesktopDimensions() • _DisplayPassword() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringIsValid() • _StringReplaceWholeWord() • _StringStripChar() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • AutoIt Search • AutoIt3 Portable • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • FileInstallr • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIGetBkColor() • LockFile() • PasteBin • SciTE Jump • Signature Creator • WM_COPYDATA • More Examples...Updated: 11/04/2013
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users




This topic is locked

