scintilla

Workaround for inability to bind to a property that belongs to a WindowsFormsHost Child object in C#/XAML app?

安稳与你 提交于 2019-12-04 10:41:08
I have a C# WPF 4.51 app. As far as I can tell, you can not bind to a property belonging to an object that is the child of a WPF WindowsFormsHost control. (If I am wrong in this assumption please show me how to do it): Bind with WindowsFormsHost In my case, I have a page that contains a WindowsFormsHost control whose Child object is a ScintillaNET editor control: https://github.com/jacobslusser/ScintillaNET <WindowsFormsHost x:Name="wfhScintillaTest" Width="625" Height="489" Margin="206,98,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"> <WindowsFormsHost.Child> <sci:Scintilla x:Name=

How to multi-line “Replace in files…” in Notepad++

孤者浪人 提交于 2019-12-04 07:48:20
问题 If the free source code editor Notepad++ has the feature "Find in files...", that is without the files being opened in the editor, does it also have the feature "Replace in files..."? Notepad++ is based on the editing component Scintilla - for which at SourceForge there is a response to a request for this feature: "No need for this to be included in SciTE as you can add this command to the Tools menu using the Parameters dialog." So is it possible to do multi-line replace in files in Notepad+

How to Use Scintilla .NET in C# Project?

痴心易碎 提交于 2019-12-03 10:29:46
问题 I am attempting to use Scintilla .NET in a project (I want a good editor + syntax highlighting, etc). Unfortunately, when I reference the binaries in my project, I can't seem to actually use the Scintilla controls. I get two different errors. The first happens when adding SciLexer.dll as a reference to my project. I get a message that says: A reference to SciLexer.dll could not be added. Please make sure the file is accessible, and that it is a valid assembly or COM component. The second

Where did System.Design go?

て烟熏妆下的殇ゞ 提交于 2019-12-03 07:21:14
I am making a C# project in which I am using ScintillaNet, and it says: The referenced assembly "ScintillaNet" could not be resolved because it has a dependency on "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. I tried adding a reference to System.Design , but it doesn't exist in my list. Do I need to download it somewhere? I have Microsoft Visual Studio 10.

How to Use Scintilla .NET in C# Project?

浪尽此生 提交于 2019-12-03 00:59:11
I am attempting to use Scintilla .NET in a project (I want a good editor + syntax highlighting, etc). Unfortunately, when I reference the binaries in my project, I can't seem to actually use the Scintilla controls. I get two different errors. The first happens when adding SciLexer.dll as a reference to my project. I get a message that says: A reference to SciLexer.dll could not be added. Please make sure the file is accessible, and that it is a valid assembly or COM component. The second error occurs when I try to use the controls from ScintillaNET.dll. If I try to drag the component into a

How to multi-line “Replace in files…” in Notepad++

限于喜欢 提交于 2019-12-02 16:56:15
If the free source code editor Notepad++ has the feature "Find in files...", that is without the files being opened in the editor, does it also have the feature "Replace in files..."? Notepad++ is based on the editing component Scintilla - for which at SourceForge there is a response to a request for this feature: "No need for this to be included in SciTE as you can add this command to the Tools menu using the Parameters dialog." So is it possible to do multi-line replace in files in Notepad++? It's easy to do multiline replace in Notepad++. You have to use \n to represent the newline in your

How make autoscroll in Scintilla?

烈酒焚心 提交于 2019-12-02 13:48:10
问题 I have a simple VB.NET application using Scintilla. I don`t know how can I make the control auto scroll when text is added to it. Can anyone help? Thanks 回答1: Done. Scintilla can auto-scroll by calling: Scintilla1.Scrolling.ScrollBy(0, Scintilla1.Lines.Count) so it scrolls to the last text line. 回答2: The accepted solution didn't work for me when trying to make a ScintillaNET editor control scroll to the bottom line after updating the Text property. Perhaps it's because I am embedding it in a

How make autoscroll in Scintilla?

≡放荡痞女 提交于 2019-12-02 04:06:17
I have a simple VB.NET application using Scintilla. I don`t know how can I make the control auto scroll when text is added to it. Can anyone help? Thanks Done. Scintilla can auto-scroll by calling: Scintilla1.Scrolling.ScrollBy(0, Scintilla1.Lines.Count) so it scrolls to the last text line. The accepted solution didn't work for me when trying to make a ScintillaNET editor control scroll to the bottom line after updating the Text property. Perhaps it's because I am embedding it in a WPF WindowsFormsHost. In any event, here is the code I used to make the ScintillaNET editor control auto-scroll

Vertical scroll Scintilla Textbox during Text Changed event

这一生的挚爱 提交于 2019-12-01 01:49:46
Setting a Scintilla.Net textbox with a string and scrolling to last line doesn't work. This Q & A How make autoscroll in Scintilla? has the answer but it wont work at the same time as setting the text . Bare bones repro: private void button1_Click(object sender, EventArgs e) { string s = RandomString(400); scintilla1.Text = s + " " + s + " " + s + " " + s + " " + s; scintilla1.Scrolling.ScrollBy(0, 10000); //<-doesn't work (but does work eg in a Button2_click) } private static Random random = new Random((int)DateTime.Now.Ticks); private string RandomString(int size) { StringBuilder builder =

Vertical scroll Scintilla Textbox during Text Changed event

…衆ロ難τιáo~ 提交于 2019-11-30 21:20:04
问题 Setting a Scintilla.Net textbox with a string and scrolling to last line doesn't work. This Q & A How make autoscroll in Scintilla? has the answer but it wont work at the same time as setting the text . Bare bones repro: private void button1_Click(object sender, EventArgs e) { string s = RandomString(400); scintilla1.Text = s + " " + s + " " + s + " " + s + " " + s; scintilla1.Scrolling.ScrollBy(0, 10000); //<-doesn't work (but does work eg in a Button2_click) } private static Random random =