Questions tagged [scintilla]

Scintilla is a free source code editing component. It includes features especially useful when editing and debugging source code.

Scintilla is a free source code editing component. It comes with complete source code and a license that permits use in any free project or commercial product.

As well as features found in standard text editing components, Scintilla includes features especially useful when editing and debugging source code. These include support for syntax styling, error indicators, code completion and call tips. The selection margin can contain markers like those used in debuggers to indicate breakpoints and the current line. Styling choices are more open than with many editors, allowing the use of proportional fonts, bold and italics, multiple foreground and background colours and multiple fonts.

Scintilla has a reference implementation called SciTE, and is used in Notepad2, Notepad++, TortoiseSVN, and numerous other projects.

250 questions
3
votes
1 answer

How to hide the first line in ScintillaNET?

Having a ScintillaNET control, I can hide line 2 scintilla.Text = "Line 1\r\nLine 2\r\nLine 3"; scintilla.HideLines(1,1); or line 2 and 3 scintilla.Text = "Line 1\r\nLine 2\r\nLine 3"; scintilla.HideLines(1,2); but nothing that would start at…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
3
votes
0 answers

wxPython wx.stc.StyledTextCtrl case insensitive highlighting

I'm using the wx.stc.StyledTextCtrl in and application where I am using it to highlight Forth: self.styled_text_ctrl = wx.stc.StyledTextCtrl(self,…
Jack burridge
  • 472
  • 7
  • 21
3
votes
2 answers

Creating and colorizing new constructs on a existing Scintilla lexer

All, I'm using QScintilla to syntax-highlight my domain specific language (DSL). Since my DSL is based on python, I use the existing Python Lexer for QScintilla. I manage to create new keywords as following: self.text = Qscintilla(self) pythonLexer…
user3352256
  • 109
  • 2
  • 5
3
votes
1 answer

Sending SCI_GETTEXT (and others) crashes the application

I am trying to use the Scintilla editor in my RealStudio application. I'm able to load the DLL, create the Scintilla child window and send messages to the window as long as the message parameters do not refer to a string. If I try to get or set a…
Andrew Lambert
  • 1,869
  • 1
  • 17
  • 31
3
votes
1 answer

Notepad++ plugin - find and highlight text

How do I set and remove color for the find text in a scintilla document by writing plugins for notepad++ in c#. I tried the following code: Win32.SendMessage(PluginBase.GetCurrentScintilla(), SciMsg.SCI_STYLESETBACK, 0, 0xFFFF00); Help me to…
AmbhuvA
  • 175
  • 2
  • 8
3
votes
1 answer

ScintillaNET Autocomplete and CallTip

I am using ScintillaNET to make a basic IntelliSense editor. However, I have a problem when I call _editor.CallTip.Show("random text") in the AutoCompleteAccepted Event. If I type pr for example, and scroll and select printf in the drop-down list,…
inixsoftware
  • 618
  • 2
  • 9
  • 26
3
votes
1 answer

How to syntax highlight using scintilla?

How can I syntax highlight using the scintilla. I have no idea how to use it. I need a code sample that loads scintilla, puts a String[], and runs it in a richtextbox.
Mohit Deshpande
  • 53,877
  • 76
  • 193
  • 251
3
votes
2 answers

Winforms, Scintilla - Saving shortcut inserts 's' letter to editor

I write small app for editing sql procedures and use great ScintillaNET code-editor control. I defined a Ctrl+S shortcut for saving files: protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == (Keys.Control |…
Joe
  • 2,551
  • 6
  • 38
  • 60
3
votes
1 answer

set highlight color of lua basic functions in scintilla control

I am using scintilla edit control in an MFC dialog based app. I load scilexer.dll, and set the lexer to lua, but the only thing that is getting highlighted is the comments. I can also set keywords and they get highlighted:…
user1452276
  • 91
  • 1
  • 7
2
votes
1 answer

Lua function to output matched strings in SciTE

I know how to output lines of matched strings (result from find command) by simply using editor:MarkerNext(): function print_marked_lines() local ml = 0 local lines = {} while true do ml = editor:MarkerNext(ml, 2) if…
theta
  • 24,593
  • 37
  • 119
  • 159
2
votes
1 answer

DScintilla, code folding not working for me

I have this code, to initialize Scintilla with xml lexer: procedure TfrmWeMain.DScintilla1MarginClick(ASender: TObject; AModifiers, APosition, AMargin: Integer); var line_number:integer; begin line_number:= (ASender as…
beerwin
  • 9,813
  • 6
  • 42
  • 57
2
votes
0 answers

Code Folding with custom Lexer (ScintillaNET)

The problem is Scintilla control does the folding automatically, which means the folding doesn't work if you do your own lexer. I'm using this to configure the control if you want to take a look at the…
Filipe
  • 146
  • 10
2
votes
1 answer

ScintillaNET : Regex keywords, non-alphanumerical keywords

I'd first like to know if it's possible to include keyword containing non-alphanumerical characters? Like @help or +test Second, is it possible to use regex or wildcards with keywords? Like I'd like to color matches for @\w* Thank you very much.
Tommy B.
  • 3,591
  • 14
  • 61
  • 105
2
votes
1 answer

Scintilla (QScintilla) 3rd marker define fails

In my class I attempt to define 3 markers, one for errors, one for warnings, and one for breakpoints. This worked well when I was only attempting to define 2 markers, but for some reason the third of these markers doesn't appear when added to a…
beta
  • 647
  • 5
  • 19
2
votes
2 answers

Retrieve text from a scintilla control using SendMessage

I'm attempting to retrieve the document text in Notepad++ using SendMessage in C#. Below is my current code. The first call to SendMessage correctly returns the length of the text. The second call to SendMessage does not insert the text into the…
chris
  • 2,740
  • 3
  • 25
  • 23