Code Folding Help.

  • Greetings All:
    I am getting stumped by a small problem…
    I am trying to fold based off of “non-code” items.
    I have a file that has 7 blocks of information format would be as follows:
    0 Axset
    24 lines of digits some may be preceded by - making them a negative value
    Rdgain 2 Dwell
    1 Stogain 2 Dwell
    Repeat digits and the 2 lines above through 5 Stogain 2 Dwell
    Then 1 Axset and so on through 7 Axset.
    I have set the open to \d Axset
    Middle to a miriad of different things.
    Close ^5 Stogain
    It folds but at random places…
    I am sure it is because of what I have in the middle but can’t seem to get it to work.
    Any suggestions? If you need an example file i can send.



    Also, this forum is formatted using Markdown, with a help link buried on the little grey ? in the COMPOSE window/pane when writing your post. For more about how to use Markdown in this forum, please see @Scott-Sumner’s post in the “how to markdown code on this forum” topic, and my updates near the end. It is very important that you use these formatting tips – using single backtick marks around small snippets, and using code-quoting for pasting multiple lines from your example data files – because otherwise, the forum will change normal quotes ("") to curly “smart” quotes (“”), will change hyphens to dashes, will sometimes hide asterisks (or if your text is c:\folder\*.txt, it will show up as c:\folder*.txt, missing the backslash). If you want to clearly communicate your text data to us, you need to properly format it.

    After you have read the above links, please come back with more details, as well example data that will actually show what you mean – interleaving the data with your question text is super confusing when you haven’t marked it up to show what’s data and what’s not.

Log in to reply