Пример #1
0
 public ClipboardColoredText(ColoredSegment chunk, TextDocument doc)
 {
     this.ScopeStack = chunk.ScopeStack;
     this.Text       = doc.GetTextAt(chunk);
 }
Пример #2
0
 public static string GenerateHtml(TextEditorData data)
 {
     return(GenerateHtml(ColoredSegment.GetChunks(data, new TextSegment(0, data.Length)), data.ColorStyle, data.Options));
 }