Questions tagged [qscintilla]

QScintilla is a Qt port of Scintilla, a source code editing component.

Official documentation: https://riverbankcomputing.com/software/qscintilla/intro

98 questions
1
vote
1 answer

Installing QScintilla2 for Anaconda on OSX: an @rpath issue

With a lot of blood, sweat and tears I have managed to compile QScintilla2 (https://www.riverbankcomputing.com/software/qscintilla/download) for usage in the Anaconda Python Distribution (2.5.0; Python 2.7.11; PyQt4) on Mac OS X El Capitan. After…
Daniel Schreij
  • 773
  • 1
  • 10
  • 26
1
vote
1 answer

Pyqt4: how to add Margins in Qscintilla properly

I want to make my margin look like this:- and i have made like this till now:- with the following code:- self.setMarginType(1,Qsci.QsciScintilla.NumberMargin) self.setMarginWidth(1,40) self.setMarginsForegroundColor(QtGui.QColor(120, 128,…
rock
  • 167
  • 9
1
vote
1 answer

Customizing PyQt Qscintilla CPP lexer

I'm writing an RSL editor for a personal project, and i'd like to customize the CPP lexer available in QScintilla because all i need is just a few extra keywords to be highlighted, but i cant really find out how to add them. any help? cheers edit -…
SketchyManDan
  • 176
  • 1
  • 10
1
vote
2 answers

Removing a line from text

Say I have a text document. I have a line.I want to delete the text on that line and replace it with another text. How do I do this? There is nothing for this on the docs, thanks in advance!
Pro-grammer
  • 862
  • 3
  • 15
  • 41
1
vote
1 answer

Using SCI_SEARCHINTARGET in Qscintilla/PyQt4

I'm trying to search for the position of a string in a Qscintilla window. Here's a piece of (runnable) mock code: import sys from PyQt4 import QtGui, Qsci app = QtGui.QApplication(sys.argv) window = Qsci.QsciScintilla() window.show() # Search in…
Gilead
  • 1,263
  • 10
  • 21
0
votes
1 answer

the folding margin is not showing in my qsciscintilla text editor

i've experienced a problem that my qscintilla folding margin is not showing well. when i enable code folding, the margin wont appear on the middle of the text editor. however, when i browse the code on the web, i found that the code placed on the…
Scott
  • 35
  • 4
0
votes
0 answers

QScintilla syntax highlighting with QsciLexerCustom - UTF-8 issue with german characters

Much like this related question, I found myself using QScintilla to create a syntax highlighter that has to deal with non-ASCII characters (é, ä, ß, etc...). I use the trick described in the comments of that question to solve the problem, styling…
0
votes
0 answers

Line wrap at specific length in QScinitilla

Can we set a line length limit in QScinitilla editor so that after crossing this limit text will be moved to next line? Scintilla's documentations explains the line wrap at Window width and not after specific length. Checked on Scintilla's…
Noushadali
  • 41
  • 5
0
votes
1 answer

How to count lines in qscintilla?

I'm using QScintilla to make my own notepad for fun in pyqt5 python. I was wandering if there is a way to get the number of lines of a QScintilla() widget?
Souvlaki42
  • 15
  • 8
0
votes
1 answer

Trying to use SCN_MODIFIED with pyqt6 generates a TypeError crash

I've got a simple editor that I'm trying to port to PyQt6, but have run into a problem with the document modified message. It works fine in PyQt5 but generates 'TypeError: unable to convert a QVariant back to a Python object' message in PyQt6. #…
shao.lo
  • 4,387
  • 2
  • 33
  • 47
0
votes
1 answer

Custom syntax highlighting using QScintilla with Qt/C++

I am trying to implement custom syntax highlighting in Qt (C++) using QScintilla, however, the documentation is somehow poor. I googled and only found a tutorial for PyQt (qscintilla.com). I am using C++ not Python. So where can I start? I have…
Teddy van Jerry
  • 176
  • 1
  • 3
  • 11
0
votes
2 answers

QsciScintilla on Pyqt4 for python35 error (unofficial whl)

I want to use pyqt4 on python35. However, the latest official release supports py=<34 So I found this university website https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyqt4 which unofficially extended support for later versions including python35 My…
0
votes
2 answers

how do I highlight the current line in QScintilla

I want to highlight the current line (the line the caret is in, similar to Notepad++) in QScintilla. Searching the interwebs gave nothing at all. Am I missing something obvious? qscintillaWidget = QsciScintilla(parent =…
J. Coenen
  • 302
  • 2
  • 9
0
votes
1 answer

How to remove lexer in qscintilla

How can I remove a lexer in qscintilla that I have set with.setLexer(lexer) if the user wants to go back to plain text? I have not found anything in the documentation. I'm using PyQt5 with Python3.
JakobDev
  • 142
  • 1
  • 8
0
votes
0 answers

ImportError: No module named 'PyQt5.Qsci' [1016] Failed to execute script Interface

I am trying build executable file for windows using PyInstaller 4 upgrade. I can build the executable file but when I am importing QsciScintilla, it doesn't work. I followed their tutorial and tried to use hidden import as well, I don't know how to…
Santosh
  • 27
  • 6