Unsolved Qt CSS Corrector for my application
-
Hello I managed to create a Css editor but what I'm missing it is the syntax error detector as it helps the user and show which line there is an error and what is the problem as in the visual code.
Do you have an idea or an example on Qt or a library like that i will have a idea about how it works.
-
Hi,
AFAIK, KTextEditor is what you are looking for.
-
No what i want is create a simple CSS Lint for my application, it contain TExtEdit as codeEditor. do you have any idea how can i analys the code and show the warning, and errors. or a lib which i cant just set my codeEditor in parameter for example :
QStringList getCSSLint(const QTextEdit &); // return all warning and errors.
what i want an open source lint lib to understand how to create that for Css
-
@GeminiMan
Even if there is some public, open source CSS parser it won't be right/useful for Qt's QSS/CSS, which is a particular "subset" of its own.Qt does not expose its QSS/parser publicly. You would have to access (compile for yourself) its implementation. The relevant file is
qcssparser.cpp
, https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/text/qcssparser.cpp?h=dev -
The search for LSP (language server protocol). The Kate editor has a plugin for KTextEditor.