124
124
var startChunk = doc.SyntaxMode.GetChunks (style, line, line.Offset, line.LengthIncludingDelimiter);
125
125
foreach (Chunk chunk in startChunk) {
127
127
string text = doc.GetTextAt (chunk);
128
128
text = text.Replace ("\t", new string (' ', settings.TabSize));
131
131
var atts = ResetAttributes ();
133
atts.Insert (new Pango.AttrForeground (chunkStyle.Color.Red, chunkStyle.Color.Green, chunkStyle.Color.Blue));
133
atts.Insert (new Pango.AttrForeground ((ushort)(chunkStyle.Foreground.R * ushort.MaxValue), (ushort)(chunkStyle.Foreground.G * ushort.MaxValue), (ushort)(chunkStyle.Foreground.B * ushort.MaxValue)));
141
141
if (chunkStyle.Underline) {
142
142
atts.Insert (new Pango.AttrUnderline (Pango.Underline.Single));