﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2700	_GUICtrlRichEdit_SetCharBkColor()	mLipok	Jpm	"from HelpFile:

{{{
Sets the background color of selected text or, if none selected, sets the background color of text inserted at the insertion point
}}}



here is a solution to the UDF:

{{{
    If $ai[0] = $ai[1] Then
;~      Return _SendMessage($hWnd, $EM_SETCHARFORMAT, $SCF_ALL, $tCharFormat, 0, ""wparam"", ""struct*"") <> 0
        Return _SendMessage($hWnd, $EM_SETCHARFORMAT, $SCF_SELECTION, $tCharFormat, 0, ""wparam"", ""struct*"") <> 0
    Else
        Return _SendMessage($hWnd, $EM_SETCHARFORMAT, $SCF_SELECTION, $tCharFormat, 0, ""wparam"", ""struct*"") <> 0
    EndIf

}}}
And solution after cleaning, just do not use If the else statement just use:
{{{
Return _SendMessage($hWnd, $EM_SETCHARFORMAT, $SCF_SELECTION, $tCharFormat, 0, ""wparam"", ""struct*"") <> 0
}}}




MS DOC:
http://msdn.microsoft.com/en-us/library/windows/desktop/bb774230(v=vs.85).aspx

{{{
SCF_SELECTION
Applies the formatting to the current selection. If the selection is empty, the character formatting is applied to the insertion point, and the new character format is in effect only until the insertion point changes.
}}}



Discusion:
http://www.autoitscript.com/forum/topic/161043-clear-way-to-show-lines-in-richedit-for-code-like-scite/

"	Bug	closed	3.3.11.5	Standard UDFs	3.3.11.4	None	Fixed		
