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…
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,…
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 -…
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!
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…
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…
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…
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…
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?
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.
#…
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…
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…
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 =…
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.
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…