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
0
votes
2 answers

wxPython StyledTextCtrl, weird 'LF'

I am working on a simple text editor in wxPython, and I noticed a problem: When I press 'Return' key, editor adds a weird 'LF': How do i prevent my program from printing them?
JadedTuna
  • 1,783
  • 2
  • 18
  • 32
0
votes
1 answer

WM_NCCALCSIZE, custom client area, and scroll bars

I have an MFC app that embeds a Scintilla text edit control. I want to customize the Scintilla control to display some custom controls next to the vertical scrollbar. Essentially, I want to render some controls in the orange area below, where the…
flashk
  • 2,451
  • 2
  • 20
  • 31
0
votes
2 answers

Vertical scroll Scintilla Textbox during Text Changed event

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…
Jeremy Thompson
  • 61,933
  • 36
  • 195
  • 321
0
votes
1 answer

Delete and replace the last line in ScintillaNET

I need a code snippet to delete the last line of ScintillaNET control and append a line to it. I tried this but didn't work: scintilla1.GoTo.Line(scintilla1.Lines.Count); int nowPosition = scintilla1.Caret.Position; …
CodeEmpower
  • 635
  • 1
  • 11
  • 29
0
votes
2 answers

halt in backgroundworker thread when using scintilla NET to not freeze the GUI

The background worker halts when invoked to append text to a scintilla Controls, here is the partial code. After adding try catch logic, i still didn't get any exceptions! private delegate void DWrite(string text); private void Write(string…
0
votes
1 answer

Highlighting rich text box with huge text efficiently in a windows form

I have huge text files that I process line by line and add the results to a StringBuilder so I don't hold the main form with loading single lines of text to it. Once processing is done I dump the result to a richtext textbox. I want to highlight…
CodeEmpower
  • 635
  • 1
  • 11
  • 29
0
votes
2 answers

wxPython and STC Margins - Top and Bottom

Is there any way of implementing padding in the top and bottom of my program for 3 and 4? Or is there a workaround like adding \n etc.... I feel asif the line numbers and the Styled text are too close to the top and bottom.
user1416451
0
votes
1 answer

Insert a space into my stc.StyledTextCtrl so the code isnt so close to the line numbers

I am trying to achieve a space where the underscore is on line 1 and line 5 to provide abit of padding between the line numbers and the code so it doesnt look so cluttered. how would i achieve this?
user1416451
0
votes
1 answer

Implementing a wx.Styled Text Control in wxPython for Application

I am creating a very basic IDE for wxpython and python, and at the moment I have a big wx.textctrl.I am typing my code into, I heard it wasn't a good practice and I'm better off using the wx.Stc.StyledTextControl from the scintilla library. How…
user1416451
0
votes
1 answer

Scintilla lexer help. Trying to save specific line information for later use

I am using scintilla's lexing capabilities and I want to do something a bit out of the box. Please mind that even though i have a bit of experience in other languages I am a beginner C++ coder. I am looking for pointers on how to save specific…
RaptorX
  • 331
  • 1
  • 9
  • 19
0
votes
2 answers

Byte array to text for ScintillaNET

I'm writing a windows forms application in c#. The application allows the user to select source code-files from a listbox and displays them in colored code using ScintillaNET. The files are saved as byte arrays in a database. I've managed to make…
Robin L
  • 35
  • 5
0
votes
1 answer

How to get to sentence in cxx file when with debug mode in the Scintilla project

I had a trouble about the scintilla ,I want to fix it with debug mode, But,How can I trace into the cxx file?f10 in vs does not work....
TommyLike
  • 75
  • 2
  • 7
0
votes
1 answer

Writing Notepad++ plugin on C#. Call SCintilla with params like char *text

I am writing a plugin for notepad++ on c#. My plugin creates a tree to represents the stucture of some specific text-files. I have some problems calling functions with paramets like (char* text). Could you help mw with this problem ? for example…
Yuurga
  • 9
  • 5
0
votes
1 answer

How to move the cursor to a specific position in a specific line in ScintillaNet control?

I need to move the cursor to a desired position of a certain line by code, any ideas which could get that to work will be appreciated.
n00b
  • 901
  • 1
  • 9
  • 20
0
votes
3 answers

How to start a project with Scintilla?

I have been trying to do a project based on the Scintilla editor and since I'm a newbie I don't know how to actually start a project. I followed the steps on the Readme and was able to build Scintilla on Windows and now trying to figure out what I…
n00b
  • 901
  • 1
  • 9
  • 20
1 2 3
16
17