Re: Detect Line Deletion by User
Hi John, The information you're looking for can be obtained by looking at the TextChange property on the EditorSnapshotChangedEventArgs that you are already handling (which is an instance of ITex...
View ArticleRe: Detect Line Deletion by User
Ok can you help me figure out how to get the integer values of each deleted line number? Using the code below, I want to be able to get access to each deleted line number and call the OnLineDelet...
View ArticleRe: Detect Line Deletion by User
Basically I want a way to loop over the deleted lines and at each deleted line, I want to perform an action by calling a method that takes in the integer line number that was just deleted by the us...
View ArticleRe: Detect Line Deletion by User
Hello, The operation.StartPosition.Line property has the start line index (zero-based) for the text change operation.
View ArticleHow to get the position of the caret of before a change occurs in the editor?
I need to be able to get the position of the caret before ANY change occurs in the editor. This could be a regular ITextChange event or in could be undo/redo event. Or it could be something I didn'...
View ArticleRe: How to get the position of the caret of before a change occurs in the...
Hello, You could probably handle the SyntaxEditor.ViewSelectionChanged event and cache e.CaretPosition's value.
View ArticleRe: How to get the position of the caret of before a change occurs in the...
That seems to fire after the PreviewKeyDown event does. I need to know if the caret is at the beginning of the line BEFORE any change occurs in the editor.
View ArticleRe: How to get the position of the caret of before a change occurs in the...
Correct, it fires after the selection is changed. I should have clarified more, but I'm suggesting that you cache the TextPosition it returns. Then when the next text change occurs, you can refer...
View ArticleRe: How to get the position of the caret of before a change occurs in the...
Ok that makes sense now. Is there any event I could use that fires before The DocumentTextChanged event does? Like in the scenario where you split a line in the middle by pressing the enter key, th...
View ArticleRe: How to get the position of the caret of before a change occurs in the...
Nevermind, it was an application specific place I needed to capture the caret position (with respect to getting the caret before an undo/redo occurs). Thanks anyway!
View ArticleRe: How to get the position of the caret of before a change occurs in the...
Sometimes the selection is changed programmatically prior to text changes being applied right after. What was previously suggested would handle that scenario and should be reliable. Another poss...
View ArticleIntelliprompt completion list background color
I was wondering if there is a way to change the background colour of the intelliprompt completion list. I have seen with the WPF control it can sort of be changed by modifying the styles, but I can...
View ArticleRe: Intelliprompt completion list background color
The background of the completion list, like most theme colors in our WinForms controls, can be changed by altering one of the colors of the associated color scheme. You can find more information ab...
View ArticleRe: Intelliprompt completion list background color
This is great! As usual, your response is excellent and very informative. I was able to tidy up a couple of other outstanding theming issues with our dark skin. We had already extended the Syntax...
View ArticleF5 Function Key
Dropped SyntaxEditor onto form with menu and other controls. Use F5 shortcut key to execute a pre-existing function but now F5 not responding. Assuming SyntaxEditor is disabling or using F5 someh...
View ArticleRe: F5 Function Key
Hi Jessie, I looked in our source code and it doesn't appear that SyntaxEditor handles the F5 key in any way. If you open our Sample Browser application and look at the SyntaxEditor Edit Actions...
View ArticleRe: F5 Function Key
Thank you for the follow-up. We will investigate the other controls more throughly.
View ArticleChanging Background
I've been trying to use the ActiproSoftware.SyntaxEditor.SyntaxEditor control version 12.1 When I try to change the this.myEditor.ForeColor or this.myEditor.BackColor but nothing seems to change....
View ArticleRe: Changing Background
Hello, In that very old version, there was a VisualStudio2005SyntaxEditorRenderer class with a TextAreaBackgroundFill property you could set to a SolidColorBackgroundFill instance to set the back...
View ArticleRe: Printing with Dark Theme
Hello, The next release of SyntaxEditor will include native support for light/dark themes and automatically handles printing in light themes when dark themes are active. Please check out our ann...
View ArticleCustom Syntax Highlighting color for the python Languages Add-on
How can I modify the default syntax highlighting in the "Python Languages Add-on" and retain the benefits of Add-ons? Or conversely, how can I use a custom .langdef for syntax highlighting and th...
View ArticleRe: Custom Syntax Highlighting color for the python Languages Add-on
Hello, The add-on uses its own specialized lexer to tokenize text. But there is some flexibility in syntax highlighting. Can you give some detail on exactly what you are looking to change so th...
View ArticleRe: Custom Syntax Highlighting color for the python Languages Add-on
I want to use python Add-on factures and custom its own default token color by using .langdef file
View ArticleRe: Custom Syntax Highlighting color for the python Languages Add-on
Hello, The Python Language Add-on uses the various classification types that are properties on the PythonClassificationTypeProvider class. You can customize the highlighting styles (colors, etc....
View ArticleCode snippet
How to insert a specific code snippet code directly by its shortcut at runtime ? when i press a button, a code snippet will be insert without showing a pop up.
View ArticleRe: Code snippet
When you press the TAB key and the word that appears immediately before the caret matches the shortcut of a known code snippet then the code snippet will be inserted without having to pick it from ...
View ArticleEditor slow for large files
The editor becomes very slow in typing when using XmlSyntaxLanguage or CSharpSyntaxLanguage as the Document.Languag, with documents larger than 5000 lines. In the Sample Browser though, the same fi...
View ArticleRe: Editor slow for large files
Hello, Please make sure you followed the steps in the Getting Started documentation topic for the individual languages. My guess would be you didn't configure the parse request dispatcher, and t...
View ArticleRe: Editor slow for large files
That was it: Instead of using the UI-thread, AmbientParseRequestDispatcherProvider.Dispatcher = new ThreadedParseRequestDispatcher(); solved the problem.
View ArticleWhy doesn't the Syntax Editor use the render for backcolor?
Hi, in your SDI sample, you set the renderer but then must also set the BackColor to be the same as the selected theme... // Configure the editor with the per-instance renderer editor.Renderer = ...
View ArticleRe: Why doesn't the Syntax Editor use the render for backcolor?
SyntaxEditor is designed, by default, to inherit the BackColor and ForeColor from the containing window and apply that to any text which does not have an explicit highlighting style (i.e., the "Pla...
View ArticleHighlighting Style Viewer with multiple languages
I'm currently in the process of updating a couple text editor tools with the Syntax Editor control from 18.1.342.0 to 24.1.0. Looking at your Highlighting Style Viewer QuickStart example, how would...
View ArticleRe: Highlighting Style Viewer with multiple languages
Hi Brittney, If you want to have distinct colors for your different languages then you would need to use a separate HighlightingStyleRegistry for each language. The Highlighting Style Viewer Qui...
View ArticleDefault Imports
Hi I'm currently in a trial period. I like what I see so far. Can you please tell me how I would add a list of default "Imports" statements so they do not need to be added to each and every cod...
View ArticleRe: Default Imports
Hello, Yes, we have a feature called Code Fragments, described in this documentation topic, that allows you to specify header and/or footer text for a document that is merged with the document bo...
View ArticleRe: Default Imports
I was searching for "Implicit Usings" and "Implicit Imports" but fragments are even more useful. Thank you.
View ArticleLamda formatting and interpolated strings
This image shows a Visual studio code snippet on top with the SyntaxEditor version below. https://app.screencast.com/UMsVZHZ04rVon Is there a way to align the expression in the same way as VS s...
View ArticleRe: Lamda formatting and interpolated strings
Hi Darren, I'm sorry but we don't have anything that will format the function that way. We are aware of interpolated strings being treated as regular strings, and it is on the TODO list to inve...
View ArticleRe: Lamda formatting and interpolated strings
OK Thanks. No problem. I figured it was worth asking.
View ArticleRe: AI integration
Hi again, just thought I would revisit this topic especially now that AI is being integrated everywhere. As AI in the coding world is now very much like the Intellisense and AutoComplete function...
View ArticleRe: AI integration
Hi Gavin, AI integration probably requires different key hooks based on what the capabilities are. I'm not sure it's something we could add a base framework for since it's a very open-ended conc...
View ArticleRe: Lamda formatting and interpolated strings
Hello, I wanted to let you know that our upcoming Actipro WinForms Controls v25.1 release should be out in the next few weeks. We are making some huge updates to the SyntaxEditor .NET Langu...
View ArticleRe: Lamda formatting and interpolated strings
Unfortunately, I'm using Winforms but hopefully you will get to that too eventually..
View ArticleRe: Lamda formatting and interpolated strings
My apologies on the WPF typo above. The same features are coming to WinForms SyntaxEditor too in v25.1. I'll edit the post above to specify WinForms.
View ArticleRe: AI integration
Do you guys have a code sample on how that would look? I'm looking to integrarte AI as well, the sample could call some mock API call, i'm looking for the part how to preview and accept the code su...
View ArticleRe: AI integration
Hello, While we don't have an AI integration sample yet, we do have numerous other adornments samples that show how to implement intra-text and intra-line adornments. The upcoming v25.1 release ...
View ArticleIntelliprompt scrollbar is not skinned if using metro dark but Windows 11 is...
I just upgraded to Windows 11 and I noticed that if the SyntaxEditor is using Metro Dark mode, the intelliprompt scrollbar uses the Windows scrollbar. If Windows is set to use light theme for apps ...
View ArticleRe: Intelliprompt scrollbar is not skinned if using metro dark but Windows 11...
Hi Marc, Thank you for brining this up. We revisited this area of the product and have implemented a way for Windows 11 dark themes to be applied to the scrollbars if SyntaxEditor is configured ...
View Article