But I can't get a foldingStopMarker that works. What I'd like to use is a blank line followed by a positive lookahead to a line that starts with a hash and a space, but
foldingStopMarker = '^$\n(?=^# +)';
doesn't work, even though that regex works in the Find dialog box.
Are the start and stop markers restricted to single line patterns? The manual suggests that, but it isn't explicit. Does anyone have any ideas?