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. Code color paste with HTML format in Qt creator
Forum Updated to NodeBB v4.3 + New Features

Code color paste with HTML format in Qt creator

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
8 Posts 3 Posters 624 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.
  • DQUY05D Offline
    DQUY05D Offline
    DQUY05
    wrote on last edited by
    #1

    Hi everyone,
    I'm asking you if it is possible to copy my code and paste it in Microsoft Word with the highlighted colors like in Qt.
    If it is possible tell me how can i do it.

    Thank you!!

    1 Reply Last reply
    0
    • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
    • DQUY05D Offline
      DQUY05D Offline
      DQUY05
      wrote on last edited by
      #2

      Hi,

      I spent a lot of time looking for it, but still no results, maybe it's the configuration in here, but I tried it still can't work.

      image.png

      JonBJ 1 Reply Last reply
      0
      • DQUY05D DQUY05

        Hi,

        I spent a lot of time looking for it, but still no results, maybe it's the configuration in here, but I tried it still can't work.

        image.png

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

        @DQUY05
        Under Linux, Creator 6.x. Default settings. I copy an area of code with coloring and paste it into LibreOffice Writer. It comes in with its coloring.

        DQUY05D 1 Reply Last reply
        0
        • JonBJ JonB

          @DQUY05
          Under Linux, Creator 6.x. Default settings. I copy an area of code with coloring and paste it into LibreOffice Writer. It comes in with its coloring.

          DQUY05D Offline
          DQUY05D Offline
          DQUY05
          wrote on last edited by
          #4

          @JonB, thank Sir !

          But I use windows, Qt6.4, can you tell me what to do, the other day I copied the code and pasted it into excel, it still showed colors, but now it's all black.

          1 Reply Last reply
          0
          • cristian-adamC Offline
            cristian-adamC Offline
            cristian-adam
            wrote on last edited by
            #5

            Just select code then go to menu to Edit > Advanced > Copy With Highlighting. I've tried it with:

            • LibreOffice Writer ✅
            • Outlook Online ❌
            • Microsoft World Online ✅
            DQUY05D 1 Reply Last reply
            1
            • cristian-adamC cristian-adam

              Just select code then go to menu to Edit > Advanced > Copy With Highlighting. I've tried it with:

              • LibreOffice Writer ✅
              • Outlook Online ❌
              • Microsoft World Online ✅
              DQUY05D Offline
              DQUY05D Offline
              DQUY05
              wrote on last edited by
              #6

              @cristian-adam

              Thank you, it's ok, but is it possible to set the default every time to Ctrl+C, I remember this was the default before

              cristian-adamC 1 Reply Last reply
              0
              • DQUY05D DQUY05

                @cristian-adam

                Thank you, it's ok, but is it possible to set the default every time to Ctrl+C, I remember this was the default before

                cristian-adamC Offline
                cristian-adamC Offline
                cristian-adam
                wrote on last edited by
                #7

                You can change the shortcuts in Preferences ... > Environment > Keyboard and have the desired shortcut for CopyWithHtml action.

                DQUY05D 1 Reply Last reply
                1
                • cristian-adamC cristian-adam

                  You can change the shortcuts in Preferences ... > Environment > Keyboard and have the desired shortcut for CopyWithHtml action.

                  DQUY05D Offline
                  DQUY05D Offline
                  DQUY05
                  wrote on last edited by
                  #8

                  @cristian-adam

                  that's great, thank you

                  1 Reply Last reply
                  1
                  • DQUY05D DQUY05 has marked this topic as solved on

                  • Login

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