I am trying to use ICSharpCode.TextEditor in Visual Basic 2010. I know that the support is mostly for C# but i hope someone can help me.
I use the following code to set forcolor and backgroundcolor for tabs and spaces, but only the textcolor is changing. Am i doing something wrong? Can somebody show me how it is done the right way?
Dim colorTab As Color = Color.RedDim backgroundcolorTab As Color = Color.GreenDim colorSpace As Color = Color.BlueDim backgroundcolorSpace As Color = Color.YellowDim highlightcolortab As HighlightColor = New HighlightColor(colorTab, backgroundcolorTab, True, False)Dim highlightcolorspace As HighlightBackground = New HighlightBackground(colorspace, backgroundcolorspace, True, False)Dim highlightstrategy As DefaultHighlightingStrategy = tec1.Document.HighlightingStrategy highlightstrategy.SetColorFor("TabMarkers", highlightcolortab) highlightstrategy.SetColorFor("SpaceMarkers", highlightcolorspace)
As you can see i tried both methodes (HighLightColor and HighLightBackground) but both don't set the backgroundcolor.