I'm working on a source code editor in C++, using Qt5 and QScintilla as framework. In this project, I want to continously show the row and column of the text cursor (cursor position), so I need a SIGNAL that emmits whenever the text cursor is moved.…
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…
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…
I've been following the directions here to get Eric5 running.
I've built everything from source, but when I try to install Eric, I get this message:
patrick@Sat1:~/Downloads/eric5-5.3.6$ sudo python3 install.py
Checking dependencies
Python Version:…
I have been messing around with creating my own Progress 4GL Editor recently by implementing QsciLexerCustom in my python application. But while browsing through the Qscintilla Source i noticed they already have a progress 4gl lexer in…
I'm trying to change the color of the entire QSciScintilla editor widget. I've tried using the function
QSciScintilla::setPaper(const QColor &c)
but that seems to change only the color behind the text (see screenshot). How can I change the…
I would like to prevent application keyboard shortcuts from being triggered when editing code in my QScintilla widget, just like a normal QLineEdit field doesn't.
In the executable example code below it is not possible to type whitespaces in the…
I was wondering how I can customize qsci.setBraceMatching(QsciScintilla.SloppyBraceMatch) in pyqt5 qscintilla. I already tried changing the default lexer and customizing the stylesheet but it did not work. Thank you in advance for your help!
I was wondering what specific commands I can execute to move a text cursor in QsciScintilla to the left or right? I know for a QPlainTextEdit, you can execute the…
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…
I'm trying to implement shortcuts to my editor, but I haven't had any success so far.
I'd like to override some of the default QScintilla shortcuts. I have read this answer, but I'm not sure if this helps to solve my problem.
I have also read the…
I was expecting autocomplete suggestions of Python keywords (i.e. for, range, lambda) and hoping for autocomplete suggestions with standard library modules and functions (i.e. sys, os.path, etc.) when setting up an api with the QsciLexerPython…
Debug steps:
brew uninstall qscintilla2
brew install qscintilla2
When that didn't work, I uninstalled again and then manually built from src:
curl -OL…
EDIT:
The standard QScintilla software doesn't support this feature. But Matic Kukovec made some hacks to get it working anyhow. His solution is explained in his answer below, but also on this webpage: https://qscintilla.com/insert-images/
I would…
Attempting to follow the QSCintilla instructions re Python bindings for PyQT5
Python Bindings
The Python bindings are in the Python directory. You must have either PyQt v4 or v5 already installed. QScintilla must also already be built and…