Does the editor consider supporting AI?

SyntaxEditor for WPF Forum

Posted 12 days ago by jun.Yang
Avatar

We are using the editor function of version 24.1. We plan to make the editor have AI intelligent perception function similar to Cursor ide in the next few months. I wonder if you have any plans for AI? If we want to achieve this goal, does the current editor have such expansion capabilities to enable us to do it quickly? Do you have any suggestions or ideas to help us?

The attached link is a video of my AI aspect of the coding process using Cursor, which allows me to complete the coding efficiently and quickly.

https://github.com/Jun-GY/Actipro.WPF.Demo/blob/main/Video_2025-03-10_205556.mp4

Comments (7)

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

Hello,

I moved this to the SyntaxEditor forum instead of Editors, since I assume you are referring to our syntax-highlighting code editor product SyntaxEditor here.

Since AI is really very language and implementation specific, we don't have any plans at the moment to directly implement any AI engines.  That being said, SyntaxEditor provides many event sinks that you can hook into to detect anything like user input, selection changes, etc. in the editor.  You can use those event sink handlers to kick off logic in whatever AI you choose to integrate.

SyntaxEditor does support intra-text adornments, meaning you can do things like those gray prompts within text lines.  At the moment, intra-text adornments can only appear at the start of tagged ranges, but in v25.1, we're adding an option to have an intra-text adornment appear at the end of tagged ranges.  That will make it easier to support things like AI prompt display at the end of lines.


Actipro Software Support

Posted 9 days ago by jun.Yang
Avatar

I now want to achieve the same function as the one in the picture. I don't have any solution at the moment. Which events should I subscribe to or what interface should I implement to achieve my goal? I really need technical support. I would be very grateful if you could provide a technical example.

https://github.com/Jun-GY/Actipro.WPF.Demo/blob/main/2025-03-13_205007.png

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

Hello,

Based on the screenshot, it appears you're trying to show AI prompts both at the end of the current line, and on subsequent lines before the next real document line.  You can accomplish that, but would need two adornments.

1) Intra-text adornments appear within a view line.  The ")" at the end of the line would need to render with that.  As mentioned above though, a feature added for v25.1 is the ability to position an intra-text adornment after the tagged range instead of before.  That option would be necessary here to get the ")" showing after the caret (assuming the caret offset is the tagged range) instead of before.

2) Intra-line adornments appear between view lines.  The curly brace block is what you'd render with an intra-line adornment.

Documentation to those features is linked above, and we have several samples that show off using the features.  In addition, the v25.1 samples are updated in a couple places to show off the positioning the intra-text adornment after the tagged range option.

I can't really tell you which event sinks to use as that depends on the scenarios you wish to initiate prompt display.  All our event sinks are listed on this page though.


Actipro Software Support

Posted 6 days ago by jun.Yang
Avatar

When is v25.1 scheduled to be released?

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

Hello,

v25.1 should be out in the next few weeks.


Actipro Software Support

The latest build of this product (v24.1.5) was released 4 days ago, which was before the next post in this thread.
Posted 3 days ago by jun.Yang
Avatar

Do I need to manually control the indentation and line breaks of the virtual display code marked in the picture, or can the editor format it automatically?

https://github.com/Jun-GY/Actipro.WPF.Demo/blob/main/2025-03-13_205007.png

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

Hello,

If you are using intra-line adornments to render that area, you'd fully render it yourself, allowing you to put anything there, including text or graphics.  It would not be included in normal SyntaxEditor view line rendering.


Actipro Software Support

Add Comment

Please log in to a validated account to post comments.