Default CollapsedRegionQuickInfoProvider Tab visualization

SyntaxEditor for WPF Forum

Posted 10 years ago by Daniel Navarro
Version: 9.2.0514
Platform: .NET 4.0
Environment: Windows XP (64-bit)
Avatar
It seems like the default CollapsedRegionQuickInfoProvider is displaying tabs as 8 spaces, while the editor default is set to 4.

You can see this in your Simple Language 5: Code Outlining demo.

Modify the first function Add(x,y) to include

function Add(x, y) {
<Tab><Tab>return x + y;
<Space x8>return x + y;
}

Then fold the node and hover over the '...' adornment.

Comments (3)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Daniel,

Right now that is just rendering using a TextBlock so I don't believe we can alter how the tab characters are spaced. We do have a TODO item to eventually change the rendered content to use an appropriate number of spaces instead of tab characters, which would work around this though.


Actipro Software Support

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Daniel,

We have some improvements in the upcoming build 515 that converts tabs to appropriate space characters and if a node's code is indented, it will also outdent all the displayed text in the quick info by the indentation amount so there isn't a lot of space on the left.


Actipro Software Support

Posted 10 years ago by Daniel Navarro
Avatar
Thank you, that is pefect!
The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.