I'm disappointed.
Funny guy.
Ok, so I just got back from my laboratory, dissected a goldfish and installed a new brain, and now I am able to see the fallacy in my previous post. Let me throw some context in the whole of this.
I'm working (playing really) with scintilla. I'm making a script that parses the SciTE configuration files and am extracting the color values.
As I have noticed, the color values are stored in RGB format, but they need to be sent to the scintilla control in BGR format.
This code causes the syntax highlighting for functions to appear grey, while everything else is highlighted as expected.
$Function_Fore = _GetProperty($SciteConfig, "style.au3.4","fore"); the _Rev() func is used in this call
SetStyle($Sci, $SCE_AU3_FUNCTION, $Function_Fore, $Function_Back, 0, "", 1, 1)
and using this works fine.
$Function_Fore = _Rev(0x000090)
SetStyle($Sci, $SCE_AU3_FUNCTION, $Function_Fore, $Function_Back, 0, "", 1, 1)
In the first example, the string is returned as "000090" and then I use the _rev() func to convert it for use with Scintilla and it appears black.
Func _GetProperty
($Config, $Property, $Which = 0, $Rev = 0)
Local $Test = StringRegExp($Config, StringReplace($Property, ".", ".") & "=(.*)[rn]", 3)
If @error Then Return SetError(1, 0, 0x000000)
Switch StringLower($Which)
Case "fore" ; Foreground color
$Test = StringRegExp($Test[0], "fore:#(.*?)[,rn]", 3)
Case "back" ; Background color
$Test = StringRegExp($Test[0], "back:#(.*?)[,rn]", 3)
Case "#" ; just the color
$Test = StringRegExp($Test[0], "#(.*?)[,rn]", 3)
EndSwitch
If $Rev Then
$Test[0] = _Rev
($Test[0])
EndIf
If @error Then Return SetError(1, 0, 0x000000)
Return SetError(0, 0, $Test[0])
EndFunc ;==>_GetProperty
Currently I have an unholy amount of free time on my hands and and decided to spend it doing this.

Like I was saying, it seems that some colors are not being converted correctly or something, I'm still trying to figure this out.
$Function_Fore = _Rev('000090');Returns incorrect conversion - 3158064 / looks grey/black
$Function_Fore = _Rev('0x000090');Returns correct conversion - 9437184 / looks navy blue
$Function_Fore = _Rev(0x000090);Returns correct conversion - 9437184 / looks navy blue
$Function_Fore = 0x000090; Makes functions look maroon - 144
$Function_Fore = 0x090000; Makes functions look grey/black - 589824
Edit: I forgot to beg you for insight on correct usage, you always make statements like that and then disappear, leaving people baffled and disoriented.
Edited by ApudAngelorum, 29 June 2012 - 05:19 PM.