Folding without a closer

Anonymous
2012-11-05
2012-12-05

  • Anonymous
    2012-11-05

    I love 6.2 and the added keywords and folding options. I have what I need now as far as syntax highlighting. The only thing I can't get quite right is the folding. I have chunks of data that start with a keyword and a possible closer or really just the next keyword.  The chunk of data I want to fold are for each respective city. Open keyword is CITY and the Close keyword is !****** or if that is missing then it's just right before the next keyword CITY. I've tried various approaches but they fold from the city down instead of just that one city.

    For example:
    CITY  "XYZ"    "CITY1"
    <data>
    <data>
    <data>
    <data>
    !*******************************************************
    CITY  "AAA"    "CITY2"
    <data>
    <data>
    <data>
    <data>

    CITY  "VVV"    "CITY3"
    <data>
    <data>
    <data>
    <data>
    !*******************************************************
    CITY  "WZX"    "CITY4"
    <data>
    <data>
    <data>
    <data>

    Any help appreciated. I will continue testing.

    AGP

     

  • Anonymous
    2012-11-12

    Can someone help me please.

     
  • cchris
    cchris
    2012-12-05

    This is something you may wish to ask on the UDL2.0 thread. I think what could be done is adding an option like "folded block don't nest". When this option is active, a fold opener inside a floded block would close it and start a new block.

    CChris