ivan 1 Posted February 14, 2011 Hi! I'm working on a simple script that generates some data I visualize on the Scite console. For ease I prefix output with the "!", "+", "-", ">" such that I can find exceptions at a glance. I have seen that whenever I use @tab to tabulate data the output appears in pink, and occasionally, on some unknown circumstances (to me) the output is brown. I looked at the scite help file to see if I could customize text color directives for the console, but I got lost in the lua docs. I wrote the following script which displays colored lines for the standard chrs ("!", "+", "-", ">" ) in the hope I will discover an additional one. Local $lsFormat = "%-10s %-10s " ConsoleWrite(StringFormat($lsFormat, "CHR", "ASC") & @CRLF) For $i=32 To 127 Step 1 ConsoleWrite(StringFormat($lsFormat, Chr($i), $i) & @CRLF) Next I'd appreciate it if anyone can shed some light on this mystery. Ivan Think out of the boxGrabber: Yet another WinInfo tool_CSVLib (still alpha)Dynamic html in au3 Share this post Link to post Share on other sites
Melba23 3,456 Posted February 14, 2011 ivan, As far as I know these are the only coloured SciTE console lines: 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) M23 1 Marcelos reacted to this 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 Share this post Link to post Share on other sites
AdmiralAlkex 125 Posted February 14, 2011 Also see Jos explanation a couple of posts after that. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Share this post Link to post Share on other sites
Jos 2,210 Posted February 14, 2011 As Melbe23 mentions but a little bit more info on the specials that also facilitate jumping to a line when double clicked: ConsoleWrite('! = 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 & @ScriptLineNumber & ' = Pink (jump to line ' & @ScriptLineNumber & ' when double-clicked)' & @LF) ;// SciTE Output logic will look for one of the following formats: ;// GCC: <filename>:<line>:<message> ;// Microsoft: <filename>(<line>) :<message> ;// Common: <filename>(<line>): warning|error|note|remark|catastrophic|fatal ;// Common: <filename>(<line>) warning|error|note|remark|catastrophic|fatal ;// Microsoft: <filename>(<line>,<column>)<message> ;// CTags: \t<message> ;// Lua 5 traceback: \t<filename>:<line>:<message> ;// Lua 5.1: <exe>: <filename>:<line>:<message> ConsoleWrite('(' & @ScriptLineNumber & ') : = Red (jump to line ' & @ScriptLineNumber & ' when double-clicked)' & @CRLF) So, how did you get brown? 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. Share this post Link to post Share on other sites
Melba23 3,456 Posted February 14, 2011 Jos,I get a "Bold Red" with a leading "!" and the "Jump to" lines come out a very brownish red on my display - I assumed that was what was happening. 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 Share this post Link to post Share on other sites
Jos 2,210 Posted February 14, 2011 ... lines come out a very brownish red on my display - I assumed that was what was happening. M23As my wife would say: You men are all color-blind . 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. Share this post Link to post Share on other sites
AdmiralAlkex 125 Posted February 14, 2011 (edited) ... lines come out a very brownish red on my display - I assumed that was what was happening. M23I see them as red. Must be something on your side.Edit: If you hold ctrl+ scroll your mouse wheel up (to zoom in) is it still brown? Edited February 14, 2011 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Share this post Link to post Share on other sites
Melba23 3,456 Posted February 14, 2011 AdmiralAlkex, No, it is the same red when you expand the characters. It just looks browner on my display on the thin normal font compared to the fat bold red font given by the !. Jos, I have heard that a few times as well! 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 Share this post Link to post Share on other sites
ivan 1 Posted February 14, 2011 (edited) As Melbe23 mentions but a little bit more info on the specials that also facilitate jumping to a line when double clicked: ConsoleWrite('! = 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 & @ScriptLineNumber & ' = Pink (jump to line ' & @ScriptLineNumber & ' when double-clicked)' & @LF) ;// SciTE Output logic will look for one of the following formats: ;// GCC: <filename>:<line>:<message> ;// Microsoft: <filename>(<line>) :<message> ;// Common: <filename>(<line>): warning|error|note|remark|catastrophic|fatal ;// Common: <filename>(<line>) warning|error|note|remark|catastrophic|fatal ;// Microsoft: <filename>(<line>,<column>)<message> ;// CTags: \t<message> ;// Lua 5 traceback: \t<filename>:<line>:<message> ;// Lua 5.1: <exe>: <filename>:<line>:<message> ConsoleWrite('(' & @ScriptLineNumber & ') : = Red (jump to line ' & @ScriptLineNumber & ' when double-clicked)' & @CRLF) So, how did you get brown? jos Thx everyone, I mean it. Sorry for not getting back, I had to leave for a couple of hours. Honestly, I don't have the faintest clue, this was ages ago and I could have sworn I got brown, but from your specs, it just looks impossible. I don't smoke pot, so to answer your questions, there's only 2 possibilities: 1.- Long hours of work made me allucinate 2.- I'm as blind as a bat and I badly need some glasses. Again, thank you all. IVAN Edited February 14, 2011 by ivan Think out of the boxGrabber: Yet another WinInfo tool_CSVLib (still alpha)Dynamic html in au3 Share this post Link to post Share on other sites
ivan 1 Posted February 14, 2011 (edited) ivan, As far as I know these are the only coloured SciTE console lines: 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) M23 @Melba23: And just when I thought I knew most functionalities of Scite4Autoit: ConsoleWrite('(5) : = Red (jump to line 5 when double-clicked)' & @LF) I never used it before, but I'm sure I'll be using it soon. Thx, IVAN Edited February 14, 2011 by ivan Think out of the boxGrabber: Yet another WinInfo tool_CSVLib (still alpha)Dynamic html in au3 Share this post Link to post Share on other sites
Beege 98 Posted November 19, 2019 (edited) On 2/14/2011 at 3:01 PM, Melba23 said: ivan, As far as I know these are the only coloured SciTE console lines: 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) M23 I found one more! Any line that ends with :number: will be purple and navigate to that line number when clicked on. While looking for this original post I found another by @mLipok that expands more upon this that I will add to: expandcollapse popup; colors In SciTE are definied in others.properties for example like this: style.errorlist.3=fore:#FF000 ConsoleWrite('Default text' & @CRLF) ; black text color => style.errorlist.0 ConsoleWrite('! = Red' & @CRLF) ; ! = red bold text color => style.errorlist.10 ConsoleWrite('> = Blue' & @CRLF) ; > = blue text color => style.errorlist.4 ConsoleWrite('< = Orange' & @CRLF) ; < = orange bold text color => style.errorlist.12 ConsoleWrite('- = Orange' & @CRLF) ; - = orange bold text color => style.errorlist.12 ConsoleWrite('--- = Brown' & @CRLF) ; --- = brown text color => style.errorlist.13 ConsoleWrite('+ = Green' & @CRLF) ; + = green text color => style.errorlist.11 ConsoleWrite('+++ = Brown' & @CRLF) ; +++ = brown text color => style.errorlist.13 ; Red text color (when double-clicked jump to specified line in specified script file) => style.errorlist.3 ; ConsoleWrite('FileFullPath' ( #ScriptLineNumber ) : 'AnyDescription=CallTipToPopUp') ConsoleWrite(@ScriptFullPath & '(' & @ScriptLineNumber & ') : Description=CallTip to PopUp' & @CRLF) ; Red text color (when double-clicked jump to specified line in specified script file) => style.errorlist.3 ; ConsoleWrite('Description' & ' in ' & 'FileFullPathOrFileName' & ' ( #ScriptLineNumber ) : ' & 'AnyDescription=CallTipToPopUp') ConsoleWrite('IMPORTANT TODO in ASin.au3 on line 5 SOME Description' & @CRLF) ; Pink text color (when double-clicked jump to specified line in specified script file) => style.errorlist.9 ; ConsoleWrite('Description_WithOut_Space' & @TAB & 'FileFullPathOrFileName' & @TAB & #ScriptLineNumber & 'Any other Descripion') ConsoleWrite('DescripionForPink' & @TAB & 'ACos.au3' & @TAB & '10' & ' = SOME Description for Pink text color' & @CRLF) ; Violet+Black text color (when double-clicked jump to specified line in specified script file) => style.errorlist.8 ; ConsoleWrite(@TAB & 'FileFullPathOrFileName' & @TAB & #ScriptLineNumber & 'Any other Descripion') ConsoleWrite(@TAB & 'ATan.au3' & ':10:' & ' SOME Description for Violet+Black text color' & @CRLF) ; Chocolate text color => style.errorlist.5 ; ConsoleWrite('Warning' & ' ' & 'Any kind of description') ConsoleWrite('Warning ' & 'Some description for Chocolate text color' & @CRLF) ; Chocolate text color => style.errorlist.5 ; ConsoleWrite('Error' & ' ' & 'Any kind of description') ConsoleWrite('Error ' & 'Some description for Chocolate text color' & @CRLF) ; not jet checked ConsoleWrite('In file included from SOME Description' & @CRLF) ; to check ConsoleWrite('line 10 column 20' & @CRLF) ; to check ;Purple for trailing operator :#: ConsoleWrite('Purple for any line ending with ":number:". Add as much space to the end as you want. :' & @ScriptLineNumber & ':' & @CRLF) ; Clear console output pane of SciTE after 5000 ms Sleep(5000) ;~ ControlSend("[CLASS:SciTEWindow]", "", "Scintilla2", "+{F5}") Edit: Actually looking closely, Mlipok already showed this with violet+black ex. Only thing I'm really showing is it does not require trailing text to add the purple color (unlike most others that are very specific) Edited November 19, 2019 by Beege Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator Share this post Link to post Share on other sites
Jos 2,210 Posted November 20, 2019 9 hours ago, Beege said: I found one more! Any line that ends with :number: will be purple and navigate to that line number when clicked on. That is part of the output lexer where it is checking for all kinds of error/warnings of the different known compilers, check out LexErrorList.cxx for all possibilities. Jos 1 Beege reacted to this 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. Share this post Link to post Share on other sites