EmEditor (text editor) Forum Index
   Questions and Answers about Plug-ins
     Outline: Code Folding, spaces/braces mode
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
CrashNBurn
Posted on: 8/8/2010 11:53 am
Just can't stay away
Joined: 4/8/2010
From:
Posts: 130
Outline: Code Folding, spaces/braces mode
When the Outline Plugin is set to "Number of spaces", and your code contains braces {} the outline view becomes a mess of
Quote:
+{
+{
+{

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:
Quote:
+ if (x)
+ if (y)
+ else

And optionally for if/else statements only when they are in the format above, then show in the outline:
Quote:
+ if (x)
+ else if (y)
+ else
Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文