Sign in to follow this  
Followers 0
ivan

Does anyone know how to customize the scite output color scheme?

10 posts in this topic

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

Share this post


Link to post
Share on other sites



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 person likes this

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

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 :)


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

... lines come out a very brownish red on my display - I assumed that was what was happening. :)

M23

As my wife would say: You men are all color-blind . ;)

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

... lines come out a very brownish red on my display - I assumed that was what was happening. ;)

M23

I 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 by AdmiralAlkex

Share this post


Link to post
Share on other sites

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#9 ·  Posted (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 by ivan

Share this post


Link to post
Share on other sites

#10 ·  Posted (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 by ivan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0