Embedded Code Snippet / Text Box in MS Word

If you visit the above website and copy the the code (as in highlight the text and select copy and not use the embedded button)

When you paste the code back in MS Word it copies over the same black box which keeps resizing as per the length of code in it. It is not a text box (as in you cant select it/format it).

Code Snippet in MS Word Screenshot:

Code Snippet in MS Word Screenshot

Can you please tell how can we add this in from within MS Word and recolor it?

It is much easier to work around with as it is not a text box and does not get selected when you click on the text

3

1 Answer

When copying text into Word with keep source formatting, you get text with the same font and fill-color as in the source.

This is not a text-box, it's only lines that have black as background-color.

To get rid of the colors, either:

  • Paste without keep source formatting
  • Select the text and in the Home pane click the Clear All Formatting icon enter image description here

You may create such effects by combining on the Home pane font and highlight colors with colors from the Design pane Page Borders icon.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like