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 709 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.
  • D Offline
    D Offline
    DQUY05
    wrote on 5 Jun 2024, 01:09 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
    • C Christian Ehrlicher moved this topic from General and Desktop on 5 Jun 2024, 04:16
    • D Offline
      D Offline
      DQUY05
      wrote on 8 Jun 2024, 09:27 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

      J 1 Reply Last reply 8 Jun 2024, 09:40
      0
      • D DQUY05
        8 Jun 2024, 09:27

        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

        J Offline
        J Offline
        JonB
        wrote on 8 Jun 2024, 09:40 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.

        D 1 Reply Last reply 9 Jun 2024, 03:00
        0
        • J JonB
          8 Jun 2024, 09:40

          @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.

          D Offline
          D Offline
          DQUY05
          wrote on 9 Jun 2024, 03:00 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
          • C Offline
            C Offline
            cristian-adam
            wrote on 11 Jun 2024, 15:08 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 ✅
            D 1 Reply Last reply 12 Jun 2024, 07:33
            1
            • C cristian-adam
              11 Jun 2024, 15:08

              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 ✅
              D Offline
              D Offline
              DQUY05
              wrote on 12 Jun 2024, 07:33 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

              C 1 Reply Last reply 12 Jun 2024, 17:46
              0
              • D DQUY05
                12 Jun 2024, 07:33

                @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

                C Offline
                C Offline
                cristian-adam
                wrote on 12 Jun 2024, 17:46 last edited by
                #7

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

                D 1 Reply Last reply 13 Jun 2024, 02:36
                1
                • C cristian-adam
                  12 Jun 2024, 17:46

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

                  D Offline
                  D Offline
                  DQUY05
                  wrote on 13 Jun 2024, 02:36 last edited by
                  #8

                  @cristian-adam

                  that's great, thank you

                  1 Reply Last reply
                  1
                  • D DQUY05 has marked this topic as solved on 13 Jun 2024, 02:39

                  2/8

                  8 Jun 2024, 09:27

                  topic:navigator.unread, 6
                  • Login

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