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

HIghlight a block of code

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 353 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 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

    Pl45m4P 1 Reply Last reply
    0
    • T Thrr

      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

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on 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 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 .

        KroMignonK 1 Reply Last reply
        0
        • T Thrr

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

          KroMignonK Offline
          KroMignonK Offline
          KroMignon
          wrote on 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
          4
          • KroMignonK KroMignon

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

            T Offline
            T Offline
            Thrr
            wrote on last edited by
            #5

            @KroMignon
            Even better it does it automatically

            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