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 LineFormat format = new LineFormat(this); format.FormatIndex = 0; format.Reset(); LineFormats[0] = format; }