-
Notifications
You must be signed in to change notification settings - Fork 2
# markup does not nest #5
Description
First of all, let me say thank you. Your code has been in valuable in helping me use BBEdit for script writing. I really appreciate you taking the time to put it together and I completely understand if you are not interested in further refining this script. But if you have time, there is one issue I wish were addressed:
The "hash" marks (that create folds in the document) end their folds prematurely at the beginning of scenes and other markup code. Ideally # would find the next # and fold everything in between, likewise with ## to ##, ### to ###, and #### to ####. I do not think going beyond four is necessary, since these would likely be used to enclose the entire project, act (multiple chapters), chapter (multiple scenes), and events within a scene. The reason for having a tag that encloses the entire project is it is the only way (option clicking) to close all nested folds in a BBEdit document, and that would be really handy. Right now I use an HTML / Fountain hybrid, but would love to be able to ditch the HTML part since all I use it for is folding.
I am happy to help try to fix the issue (to the extent of my abilities). I tried my hand at it once already, but I am not well versed in scripting. If you would like my input, please let me know.