Quantcast
Channel: ScintillaNET Forum Rss Feed
Viewing all 296 articles
Browse latest View live

New Post: ScrollBars AutoAdjust


New Post: Advice for setting Scrolling.HorizontalWidth

New Post: Remove Method

$
0
0
I tried using SCI_DELETERANGE but nothing happened, I did someting like:
int startPos = ...;
int length = ...;
const uint SCI_DELETERANGE = 2645;
scintilla.NativeInterface.SendMessageDirect(SCI_DELETERANGE, startPos, length);

New Post: Scintilla : Adding keyword having space in between like 'end if' appears seperate in autocomplete.

$
0
0
When i add a keyword in autocomplete list having space in between keyword as 'end if' appears seperate in autocomplete.
Can anyone please help me.

Thank you in advance.

New Post: Scintilla : Adding keyword having space in between like 'end if' appears seperate in autocomplete.

$
0
0
Hello again

I have solved this issue by setting the:
ScintillaControl.AutoComplete.ListSeparator = ',';

Now you can put space in between keyword's name.

New Post: Custom Lexer glitch

$
0
0
Hello,
I'm looking at ways to syntax highlight a sql like text.
My files are sql-templates with some special tag that I want to highlight
for exemple I've param placeholders of the type {{param_name}} tha I want to color in pink
In Notepad++ I've defined a "custom language" using the following workaround:
In a keyword list I've iserted "{{" and I've set prefix mode
so for exemple {{test}} and {{my_param}} will be colored with the group style.
Is possibile to do the same in ScintillaNet or "prefix mode" is specific of notepad++ ?

If I understand, I can't start from an existing language like mssql and add this behaviour
but I've to implement a CustomLexer.

There is a complete project example with a basic CustomLexer from which start?

thanks

New Post: Find and replace set default search string

$
0
0
Hi,

I wonder if there is an easy way to set a default search string in the Find&Replace form. I need it basically to set the clipboard content automatically.

thanks,

New Post: ScintillaNET with tabpages

$
0
0
Sorry for the delay in response. We had a 2 software releases for another project in the past 2 months. I took your advice removed the background thread, moving all processes to the UI thread, and using invokes. It works flawlessly. Thank you very much for the lead.

New Post: unable to load scilexer.dll into memory module

$
0
0
I'm having the hardest time publishing the scilexer.dll with my project. my program runs beautifully on my local machine but installing it on another machine doesn't get past the initial start up of the program without throwing the error.

can someone out there please help me to be able to distribute this dll with my program.

New Post: Using the latest version of Scintilla

$
0
0
Using the latest version (MSVC11) does not work at all. I am not sure why it doesn't work, as the module loads perfectly fine.

Sigh. Back to the drawing board.

New Post: Using the latest version of Scintilla

$
0
0
I just upgraded to 3.3.7, and it now works! I guess it was a bug with 3.3.6.

New Post: unable to load scilexer.dll into memory module

$
0
0
The SciLexer.dll (and SciLexer64.dll) needs to be somewhere in the search path. Refer to http://msdn.microsoft.com/en-us/library/7d83bc18.aspx.

If you're still having trouble, you can try calling Scintilla.SetModuleName with the absolute path of the file prior to the first Scintilla control being created. This essentially tells Scintilla not too look for SciLexer.dll in the search path but to load the file at the absolute path you specify.

Jacob

New Post: ScintillaNET Select

$
0
0
Hi, I want to know how can I select the ScintillaNET, i tryed scintilla1.Focus and scintilla1.Selected but nothing. I want to selected it from another dockpanel when I double click on the dockpanel, eg dockpanel with some sentences.

New Post: Creating splitter windows

$
0
0
Is there anyone working on a split view in the scintillaNET control?

I

New Post: Creating splitter windows

$
0
0
It's not currently part of any plans I have. (I'll let other ScintillaNET developers speak for themselves).

I've looked into this in the past and it is really problematic. For example, we can't get a grip block at the top or left of the vertical and horizontal scroll bars (like Visual Studio and other popular IDEs) because we don't render the scrollbars, the native Scintilla control does.

Problem two is that if not done correctly it can add a lot of bloat to users of ScintillaNET who don't wish to have splitters. e.g. it could end up being one control with 4 nested controls whether a user wants that or not. That also complicates the API. For example, how would you know which of the nested controls currently has focus? Or what the first visible line is for just one of those nested controls? Do the folds stay in sync or can a user fold split controls independently of each other? etc, etc, etc.... It would require a complete redesign of the API--a complete rewrite of the project.

In short, I've tried. Believe me I've tried. There are real technical limitations and not a strong enough use case.

Of course that doesn't prevent you in any way from making your own UserControl and dropping in 4 ScintillaNET controls yourself. For the reasons I just mentioned, that would actually be much easier.


Jacob

New Post: Release Memory

$
0
0
Do you have a sample program which illustrates this problem? I understand that you believe it is a problem with ScintillaNET but I'm not entirely convinced it is. I suspect that you're misunderstanding how ScintillaNET handles text but I can't be sure until I see an example.

Thanks,
Jacob

New Post: Remove Method

$
0
0
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.

New Post: Remove Method

$
0
0
1). As was pointed out by @blah38621, doing
scintilla.Text.Remove(1, 5);
will have no affect on the text in the Scintilla control and it has nothing to do with Scintilla. The Scintilla.Text property is a string and strings in .NET are immutable. i.e. can't be changed. What the string.Remove method does is return a NEW string with the range specified removed. Thus you could do:
scintilla.Text = scintilla.Text.Remove(1, 5);
but that would be horribly inefficient.

2). The recommended way to delete a range of text in Scintilla is to use a Range object. For example:
scintilla.GetRange(1, 5).Text = "";
will get the range between indexes 1 and 5 and replace it with an empty string. i.e. remove the text in that range.

3). I agree that we should implement the SCI_DELETERANGE message and make this easier to do. As noted in the post above I created work item 34984 to do just that.


Cheers,
Jacob

New Post: ScintillaNET Select

$
0
0
I'm not in a place where I can test this, but have you tried
scintilla.Select();
Thanks,
Jacob

New Post: ScintillaNET Select

Viewing all 296 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>