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. HIghlight a block of code
Forum Update on Monday, May 27th 2025

HIghlight a block of code

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 354 Views
  • 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.
  • T Offline
    T Offline
    Thrr
    wrote on 8 Jun 2020, 10:58 last edited by
    #1

    How to highlight sections or block of codes like Matlab, where you use "%%" to separate the code , something like this
    https://www.mathworks.com/help/matlab/matlab_prog/section_thirdlevel_highlight.png

    P 1 Reply Last reply 8 Jun 2020, 11:29
    0
    • T Thrr
      8 Jun 2020, 10:58

      How to highlight sections or block of codes like Matlab, where you use "%%" to separate the code , something like this
      https://www.mathworks.com/help/matlab/matlab_prog/section_thirdlevel_highlight.png

      P Offline
      P Offline
      Pl45m4
      wrote on 8 Jun 2020, 11:29 last edited by
      #2

      @Thrr

      This depends on your IDE. In QtCreator this is not possible (AFAIK)


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Thrr
        wrote on 8 Jun 2020, 11:39 last edited by
        #3

        I forgot to mention that I mean in Qt creator. Where can I suggest this feature? it really helps in code readability .

        K 1 Reply Last reply 8 Jun 2020, 12:00
        0
        • T Thrr
          8 Jun 2020, 11:39

          I forgot to mention that I mean in Qt creator. Where can I suggest this feature? it really helps in code readability .

          K Offline
          K Offline
          KroMignon
          wrote on 8 Jun 2020, 12:00 last edited by
          #4

          @Thrr Have you tried "Highlight blocks" in Text Editor / Display?
          c3f32e52-94c9-413a-a7d0-70ef7b0d2025-image.png

          It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

          T 1 Reply Last reply 8 Jun 2020, 13:58
          4
          • K KroMignon
            8 Jun 2020, 12:00

            @Thrr Have you tried "Highlight blocks" in Text Editor / Display?
            c3f32e52-94c9-413a-a7d0-70ef7b0d2025-image.png

            T Offline
            T Offline
            Thrr
            wrote on 8 Jun 2020, 13:58 last edited by
            #5

            @KroMignon
            Even better it does it automatically

            1 Reply Last reply
            0

            1/5

            8 Jun 2020, 10:58

            • 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