コード例 #1
0
            public LineSpanBuilder(int indentSize, LineBehavior options)
            {
                _indentSize = indentSize;
                _options    = options;

                _activeSpans    = new List <LineSpan>();
                _completedSpans = new List <LineSpan>();
            }
コード例 #2
0
            public LineSpanBuilder(int indentSize, LineBehavior options)
            {
                _indentSize = indentSize;
                _options    = options;

                _activeSpans         = new List <LineSpan>();
                _completedSpans      = new List <LineSpan>();
                _lastEmptyToTextLine = -1;
                _lastTextToEmptyLine = -1;
            }
コード例 #3
0
 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;
 }
コード例 #4
0
        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;
        }