Quote:
Originally Posted by kovidgoyal
@BobC: Sure, I can see the utility of auto-splitting. However, I dont think I want to make it regex based, I prefer to make it XPath based, which is both more powerful and it works with the current splitting infrastructure (which splits on tags not arbitrary locations in the code).
|
@Kovid : That looks a good approach, at the moment though, even with manual splitting, I have a problem where a new Chapter is preceded by an anchor - in the preview frame it's not clear where the "split line" is in relation to the anchors as they are invisible in the preview pane and the split line is invisible in the code frame. The anchor could belong to say the end of Chapter 1 or the beginning of Chapter 2 - only an inspection of the code will make this clear, and if you have two - one marking the end of Chap 1 and the next line the start of Chap 2 it is important to split between the two. Any thoughts on how to resolve this would be welcome. (I haven't actually met this last problem yet but know it will arise at some point).
I suppose even with Xpath based auto-splitting it would be possible to use Regex S&R to create the appropriate tags that can then be used for the tag based splitting (just musing).
BobC