Increase spacing between lines in Syntaxeditor

SyntaxEditor for WPF Forum

Posted 12 years ago by pdudday
Version: 11.1.0544
Avatar
Hi, Could you please let me know how to increase the spacing between lines by few pixels in the syntax editor. I would like to display some UI elements between the lines using adorners.

Thanks

[Modified at 10/03/2011 05:49 AM]

Comments (8)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
At the moment we do have a place internally where the top/bottom margin of a line can be set, which is probably what you would want access to. However to expose that publicly, we'd need some sort of service that allows you to alter it for a particular text range of characters in the document. Basically the service would need to be called for each view line as it's layout is being performed.

I've added a TODO item for this. If you'd like to make sure this gets into the product shortly, you can always e-mail us regarding consulting hours for its implementation.

Another possible workaround is to add intra-text spacers that perhaps no width but have the height you need. The only downside of that would be if word wrap is enabled since you'd need them on each wrapped line, which may be tricky to detect.


Actipro Software Support

Posted 12 years ago by pdudday
Avatar
Hi, Thanks for the quick response. I was thinking on the similar lines, but thought properties like SpacingBeforeLine and SpacingAfterLine would help. However at the moment the workaround seems would help.

Cheers,
PD.
Posted 9 years ago by Xinen Lee
Avatar

Hi, has this been implemented? I'm trying to put adorners below lines, similar to what another user has requested regarding Visual Studio code lens.

When using intra-text spacers with no width but height, the height of the line is increased. This causes some side effects such as:

1. caret is too long - it extends to the bottom where the adorners are

2. when line is selected, the whole area including the bottom adorner space is highlighted

3. when Display Whitespace is switched on, the whitespace characters are pushed down since they are rendered in the middle of the new taller line

4. outlining '+' symbol is pushed down to be in the middle of the new taller line

 

Will there be support for adorners in between lines?

Thanks

[Modified 9 years ago]

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

Hello,

Sorry but we haven't added this yet.  It is on the TODO list and is something that has been getting a couple more requests lately, so its priority is bumping up.


Actipro Software Support

Posted 8 years ago by Xinen Lee
Avatar

Hi Actipro,

We really need this support for adorners in between lines. Is it possible to work on it soon please?

Thanks!

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

Hi Xinen,

Thank you, we will mark down your vote.  We can't start on it just yet since we're in the midst of developing new tree/grid controls right now, but it is higher up on the priority list for after.


Actipro Software Support

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

Hello,

We just started a new forum thread that we are pointing all the customers interested in an inter-line adornment feature (like CodeLens) towards:

https://www.actiprosoftware.com/community/thread/23745/inter-line-adornments-like-vs-codelens-brains

Check that out and please give any appropriate insight. Thanks!


Actipro Software Support

Answer - Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

We have the intra-line adornments feature wrapped up and ready to go for the upcoming 2017.2 version. It has two new related samples, one for a Code Lens like UI and one for a Peek Definition like UI.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.