Collapse all

Collapse all

fcleal

    Jul 12, 2005#1

    Hi all.

    At first: Sorry for my bad English. I hope everyone can understand me :wink:

    I think the "collapse all" functionality doesn't work good enough. For example when I've the following html text:

    <html>
    <head>
    </head>
    <body>
    <table>
    <tr>
    something more....
    </tr>
    </table>
    <h1>
    <font>
    bla
    </font>
    </h1>
    </body>
    </html>

    When I now use the "collapse all" function, you see "html", "head" and "body". So far, so good.

    You get at this point:
    <html>
    +<head>
    +<body>
    </html>

    Now I open the table tag, I see everything which is under "table". The Tags under table aren't collapsed ("tr", "something more", "font" and "bla" are visible!). I expected from the "collapse all" that everything is collapsed even when you open one level. In this example it means, I only want to see the table tag and the h1 tag, nothing more.

    What you get after this is:

    <html>
    +<head>
    <body>
    <table>
    <tr>
    something more....
    </tr>
    </table>
    <h1>
    <font>
    bla
    </font>
    </h1>
    </body>
    </html>

    I expected to get this:

    <html>
    +<head>
    <body>
    +<table>
    +<h1>
    </body>
    </html>

    (+ means, the content of the tag is hidden)


    Is it possible to correct this behaviour of the "collapse all" function? It will be a very nice feature, specially for C++ header with serveral class definitions.

    Greets Andreas (ben-savan)
    -------------------------------------------

    By the way: Did anyone understand the problem, I'm thinking about :oops:

    6,675585
    Grand MasterGrand Master
    6,675585

      May 27, 2006#2

      Your English was good enough. You described perfectly how collapse all works. I think, nobody has answered till now because Collapse All collapses always only the most outer level of the current selection or the whole file if nothing is selected. This behaviour cannot be changed.

      See Code Folding how to exclude with v12 of UE or v5.50 of UES some levels like html, head, body, ... from code folding to get a better code folding result on the initial usage of Collapse All without selection. But it's not possible to specify anywhere that the Collapse All function should collapse from the most inner level to the most outer level.

      See also on the FAQ page Can inner-level folds remain collapsed after expanding an outer-level fold that has been collapsed with "Collapse All"?
      Best regards from an UC/UE/UES for Windows user from Austria