static public void SetMarkerStyle(this ScintillaGateway document, int marker, SciMsg style, Color foreColor, Color backColor) { int mask = document.GetMarginMaskN(1); document.MarkerDefine(marker, (int)style); document.MarkerSetFore(marker, foreColor.ToColour()); document.MarkerSetBack(marker, backColor.ToColour()); document.SetMarginMaskN(1, (1 << marker) | mask); }