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
Servers for Qt installer are currently down

Qt CSS Corrector for my application

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 238 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 17 Mar 2021, 22:25 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 18 Mar 2021, 21:20 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 19 Mar 2021, 02:32 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

        J 1 Reply Last reply 19 Mar 2021, 09:47
        0
        • G GeminiMan
          19 Mar 2021, 02:32

          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

          J Offline
          J Offline
          JonB
          wrote on 19 Mar 2021, 09:47 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
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 19 Mar 2021, 19:59 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

            1/5

            17 Mar 2021, 22:25

            • Login

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