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

ScintillaNET in WPF XAML Issues

I am trying to use ScintillaNET in WPF (via the Windows Forms Host). However I am getting an invalid XAML markup. My XAML code is:
inixsoftware
  • 618
  • 2
  • 9
  • 26
4
votes
2 answers

Notepad++ .NET plugin - get current buffer text -- encoding issues

I have a .NET plugin which needs to get the text of the current buffer. I found this page, which shows a way to do it: public static string GetDocumentText(IntPtr curScintilla) { int length = (int)Win32.SendMessage(curScintilla,…
woddle
  • 1,582
  • 1
  • 18
  • 34
4
votes
1 answer

Scintilla: single line mode

It is possible to set the single line mode for Scintilla? In the documentation, I found a mention about it, but can't find how to turn on.
kaa
  • 1,265
  • 5
  • 22
  • 39
4
votes
7 answers

Notepad++ loses HTML tags highlighting after any <% of Mako Templates tag. How to disable this behaviour?

Let me attach a picture to explain: So after any tag of Mako (<%block, <%include, ets.) it makes the subsequent HTML code whole sole-colored black. I don't know what to do with this. Options -> Style Options adjustments doesn't help. I've tried to…
Green
  • 28,742
  • 61
  • 158
  • 247
4
votes
2 answers

Syntax highlighting control for Mono?

I can't seem to find any syntax highlighting widgets/controls for Mono. I know that GtkSourceView has a Mono version, but I can't actually find it anywhere. Any help would be greatly appreciated. :)
Sarah
  • 71
  • 4
4
votes
2 answers

How do i interface my objc program with an objc++ library?

I have an objc program and i would like to use a widget that is written in objc++ (namely https://launchpad.net/scintilla-cocoa). How do i go about this? Basically i want a new window controller object to interface with this objc++ library to define…
horseyguy
  • 29,455
  • 20
  • 103
  • 145
3
votes
1 answer

ScintillaNET problems in VB.NET

Im using ScintillaNET and i want syntax highlighting. I Cant seem to figure it out :( i have tried: Scintilla.Lexing.Lexer = ScintillaNet.Lexer.Php Scintilla.Lexing.LoadLexerLibrary(ScintillaNet.Lexer.Php) Scintilla.Lexing.LexerName =…
Stian
  • 649
  • 3
  • 7
  • 15
3
votes
1 answer

Marks in scintilla scrollbar?

Does it possible to mark search results/breakpoints/bookmarks in scrollbar of scintilla control? Like it done in Google Chrome or JetBrains IDEs.
garkin
  • 458
  • 5
  • 10
3
votes
1 answer

Cannot Style ScintillaNet Text after or before syntax coloring

var scin = new Scintilla(); ScintillaHotspotStyle = scin.Styles.LastPredefined.Index + 1; scin.Margins[0].Width = 20; scin.Caret.HighlightCurrentLine = true; scin.Styles[ScintillaHotspotStyle].IsHotspot =…
Tom Ritter
  • 99,986
  • 30
  • 138
  • 174
3
votes
1 answer

How to get first displayed document line number if line wrapping is enabled?

I use SCI_GETFIRSTVISIBLELINE of Scintilla in order to get the first displayed line of the document. Now, I enabled word wrapping mode by setting SCI_SETWRAPMODE to SC_WRAP_WORD. But SCI_GETFIRSTVISIBLELINE does not match the document line any…
MrTux
  • 32,350
  • 30
  • 109
  • 146
3
votes
1 answer

Text replacement in ScintillaNet

I have a ScintillaNet text editing control. I want to replace tabs with 4 x space as the user is typing in the control. I'm not exactly sure where to do this as I'm not very familiar with the control. I have been looking into all the events but…
Bala R
  • 107,317
  • 23
  • 199
  • 210
3
votes
1 answer

How do you add a new language setting to ScintillaNet?

I'm writing a C# program that uses a text editor to edit a file format similar to compiled lua with ScintillaNet (rbf). I understand that you can add new languages to Scintilla by adding an Xml file, and referencing this in the CustomDirectory…
Migwell
  • 18,631
  • 21
  • 91
  • 160
3
votes
1 answer

How do I apply QScintilla syntax highlighting to a QTextEdit in PyQt4?

I have a simple PyQt text editor, and would like to apply QScintilla formatting to it. I need to use a QTextEdit for the text, as it provides other functionality that I am using (cursor position, raw text output, etc), and would like to apply…
Bob Eret
  • 59
  • 3
  • 12
3
votes
3 answers

Adding a new lexer to scintilla/scite (...and eventually wxPython StyledTextCtrl)

Has anyone of you successfully added a lexer to scintilla? I have been following the short instructions at http://www.scintilla.org/SciTELexer.html - and even discovered the secret extra instructions at…
relet
  • 6,819
  • 2
  • 33
  • 41
3
votes
1 answer

Scintilla .NET editor. Position cursor at the first visible line

I am using the Scintilla .NET text editor control (ScintillaNet.dll) to display SQL. I am using the following command to position the caret cursor at a given line number. In the example below, I am positioning the caret cursor at line 102 (0 based.…
Chad
  • 23,658
  • 51
  • 191
  • 321
1 2
3
16 17