Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator 2.5.0 & GLSL syntax highlighting
Forum Updated to NodeBB v4.3 + New Features

QtCreator 2.5.0 & GLSL syntax highlighting

Scheduled Pinned Locked Moved Qt Creator and other tools
8 Posts 3 Posters 5.2k 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.
  • M Offline
    M Offline
    matti-
    wrote on last edited by
    #1

    So the new QtCreator does syntax highlighting for .fsh/.vsh files which is rather annoying - everything is an error:

    bq. vec4 tex_color = texture2D(texture, ex_texCoord);

    = "texture2D not declared in this scope"

    Any tricks to disable this? Tried installing the highlighting definitions for "GLSL" but no change. Couldn't figure out how to disable highlighting for certain filetypes.

    • M

    Author of <a href="http://mmark.777-team.org/">MMark13</a>

    1 Reply Last reply
    0
    • R Offline
      R Offline
      renderingpipeline
      wrote on last edited by
      #2

      Hello,

      I was annoyed by this as well and rolled my own syntax highlighting. See this blogpost: http://renderingpipeline.com/2012/11/glsl-syntax-highlighting-for-qtcreator-and-kate/ .

      Kind regards,
      Robert

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        Did you "file a bug report":http://bugreports.qt-project.org/ ? I never used GLSL highlighters myself, but was told that they work well.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          renderingpipeline
          wrote on last edited by
          #4

          Hello Tobias,

          the highlighting works well for GLSL 1.20, but the latest version is 4.30 and thus newer keywords are marked as errors and deprecated ones are not marked as such.
          So it's not buggy, it's just outdated. But as QTCreator supports the language XML files from Kate, you can just add support for recent GLSL versions on your own (see link).

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tobias.hunger
            wrote on last edited by
            #5

            IMHO being outdated is a bug, too... It should not be too hard to add a couple of keywords (not that I can actually judge this, not having touched the codemodel code ever;-).

            1 Reply Last reply
            0
            • R Offline
              R Offline
              renderingpipeline
              wrote on last edited by
              #6

              I have added a suggestion the bugtracker.

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tobias.hunger
                wrote on last edited by
                #7

                Do you have the bug number somewhere?

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  renderingpipeline
                  wrote on last edited by
                  #8

                  The number is QTCREATORBUG-8331 .

                  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