Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt CSS Corrector for my application
Forum Updated to NodeBB v4.3 + New Features

Qt CSS Corrector for my application

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 245 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GeminiMan
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      AFAIK, KTextEditor is what you are looking for.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        GeminiMan
        wrote on last edited by GeminiMan
        #3

        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

        JonBJ 1 Reply Last reply
        0
        • G GeminiMan

          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

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @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

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            The search for LSP (language server protocol). The Kate editor has a plugin for KTextEditor.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved