Hi Neil,

Sorry about the lack of a subject.

> Michael.Cartmell:
> 
> > Is it possible to set the fold level of the previous line?  
> 
>    Yes, although it will be more confusing. I would read ahead instead
> of patching behind.
> 

I'll try that.

> > silverRing : Wearable
> >     'silver ring'
> >     'silver ring'
> >     "A silver ring lies glinting in the dust. "
> > ;
> > 
> > In the second case I don't find out that the block has 
> begun untill I reach
> > 'silver ring' on the second line.  
> 
>    This similar to Python ao you could have a look at the 
> Python folder.
> 

In Python the indentation is part of the syntax & can be relied on, here the
indentation is the same as C's, nice to look at, but ignored b the
compiler;)

> > levelCurrent++;
> > if (!visibleChars) {
> >     styler.SetLevel(lineCurrent-1, 
> styler.LevelAt(lineCurrent-1) + 1);
> > }
> > 
> > however that doesn't seem to work.  Have I missed something?
> 
>    Don't you want to leave the previous line at its level but set this
> line to one more? Or did you mean that the second 'silver ring' line
> (that is, line 3) is the subordinate?
> 

I want the folding to appear at the line "silverRing : Wearable" whether or
not the '{' is present.  With the brace I see

silverRing : Wearable
------------------------------------------- (fold line)

Without it I get

silverRing : Wearable
    'silver ring'
------------------------------------------- (fold line)


Anyway I'll try reading ahead and using the context available from two lines
to set the first of them.

Michael
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to