How should I implement InlineSuggestion in SyntaxEditor?

SyntaxEditor for WPF Forum

The latest build of this product (v25.1.0) was released 18 days ago, which was before this thread was created.
Posted 12 days ago by david lin
Version: 24.1.0
Avatar

As the title indicates, how can I achieve this UI effect?

Perhaps you can understand this effect from the link below: 

https://github.com/lyq-lin/ActiproDemo/blob/main/Editor/Image/InlineSuggestion.png

I haven't seen any indication in the official examples or documentation that this can be done.

If it is already supported, please let me know more.

Thank you for your work.

Comments (1)

Posted 11 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

We don't have a sample yet showing AI prompts specifically, but the general UI infrastructure should be there in SyntaxEditor to support those kinds of things.  You can inject intra-text adornments (rendering between characters on a single line) and/or intra-line adornments (rendering between lines) to render things like AI prompts.

The latest v25.1 release allows intra-text adornments to optionally render after a character (like the last one in a line), which was specifically added for AI prompt kind of scenarios.

The "Indicators - Debugging" sample shows text after the end of the line when you click the Run button.  That is the concept you'd want for the end of the line text display.  Other samples show other implementations of intra-text and intra-line adornments.


Actipro Software Support

Add Comment

Please log in to a validated account to post comments.