Viewing 1 post (of 1 total)
  • Author
    Posts
  • #8828

    CrashNBurn
    Member

    When the Outline Plugin is set to “Number of spaces”, and your code contains braces {} the outline view becomes a mess of

    +{
    +{
    +{

    If you change the Outline Plugin to “Number of Braces”, then none of the lines appear in the Outline that don’t use Braces, i.e.

    if (x)
    do x-this
    else
    if (y)
    do y-that
    else
    do z-other

    I’ve unsuccessfully attempted many times to write my own Custom Outline, but there are no examples provided and my regex syntax doesn’t appear to be working; As well the plugin doesn’t seem to support regex tokens of 1 2 3 etc for the text replacement.

    Is there some way to enable Outline with a setting of “Number of spaces”, where if the next line of code is one of a number settable character (i.e. “{([” ) then outline mode will display the previous line of code instead of {.

    Example:


    if (x)
    {
    do x-this
    }
    else
    if(y)
    {
    do y-that
    }
    else
    {
    do z-other
    }

    In spaces mode, we will see a whole bunch of +{‘s in the Outline.
    How can we make spaces mode display the previous line of code instead:

    + if (x)
    + if (y)
    + else

    And optionally for if/else statements only when they are in the format above, then show in the outline:

    + if (x)
    + else if (y)
    + else

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.