public LineSpanBuilder(int indentSize, LineBehavior options) { _indentSize = indentSize; _options = options; _activeSpans = new List <LineSpan>(); _completedSpans = new List <LineSpan>(); }
public LineSpanBuilder(int indentSize, LineBehavior options) { _indentSize = indentSize; _options = options; _activeSpans = new List <LineSpan>(); _completedSpans = new List <LineSpan>(); _lastEmptyToTextLine = -1; _lastTextToEmptyLine = -1; }
public DocumentAnalyzer( ITextSnapshot snapshot, LineBehavior behavior, int indentSize, int tabSize, int chunkSize = 30 ) { OriginalSnapshot = snapshot; LongestLine = 0; Behavior = behavior.Clone(); IndentSize = indentSize; TabSize = tabSize; ChunkSize = chunkSize; }
public IndentTheme() { ContentType = null; LineFormats = new Dictionary <int, LineFormat>(); PageWidthMarkers = new PageWidthMarkerGetter(this); DefaultLineFormat = new LineFormat(this); Behavior = new LineBehavior(); CaretHandler = DefaultCaretHandler; // Ensure format for indent 0 is hidden by default var format = new LineFormat(this); format.FormatIndex = 0; format.Reset(); LineFormats[0] = format; }