Hi Scott,
On Jan 7, 7:18 pm, Scott Lawton <
scott.s.law...@gmail.com> wrote:
...
> A third:
> -a
> --b
> -...a
>
> i.e. at the same level as *a*, with added '...' prefix (or some other
> text or symbol)
For html, a node without tag could be made. For xml this would only
work if the ...a node is at the level of b and it's text would be
appended to the parent.
>
> > In search for an elegant solution.
>
> One useful option for html: show inline tags (such as bold) as if they
> were merely part of the text rather than tagged. Something similar
> could be done for xml with a custom settings file to mark block vs.
> inline OR merely by observing whether it had the
> 'text<tag>text</tag>text' format.
That could be a possible solution: making better decisions, which xml/
html nodes become outline nodes (currently all). That way, the easy
nodes (without trailing text) become outline nodes and the tagsoup
parts get collected into one node.
It looks like I need to extend the current parser.
> Agreed! I'm pretty sure there's no one best/right answer; just
> different settings for different files and/or personal preference.
At least I have a direction: I want to outline-edit xml and html
documents. Period.
> There are of course plenty of models in the XML world (of editors with
> an outline view), though I never found any compelling enough to
> overcome whatever other limitations they had vs a plain text editor.
I just looked at an older version of <oXygenXML>. It creates a mapping
from the outline to a selection of the file. The outline looks the
same as mine with trailing text not in a node but it references the
trailing text correctly in the file. That's not what I want.
-karsten