- AuthorPosts
- August 8, 2010 at 7:53 pm #8828CrashNBurnMember
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)
+ elseAnd optionally for if/else statements only when they are in the format above, then show in the outline:
+ if (x)
+ else if (y)
+ else - AuthorPosts
- You must be logged in to reply to this topic.