Thursday, March 10, 2022

Use the code snippet web part

When you add a modern page to a site, you add and customize web parts, which are the building blocks of your page. This article focuses on the Code snippet web part.

The Code snippet web part allows you to easily display code as text on your page for others to use or learn from. You can select the code language and a dark or light theme. The web part even auto-corrects syntax.

Notes: 

  • Some functionality is introduced gradually to organizations that have opted in to the Targeted Release program. This means that you may not yet see this feature or it may look different than what is described in the help articles.

  • The Code snippet web part is not available in SharePoint Server 2019.

Add the Code snippet web part

  1. Go to the page where you want to add the Code snippet web part.

  2. If your page is not already in edit mode, click Edit at the top right of the page.

    Hover your mouse above or below an existing web part and you'll see a line with a circled +, like this:

    Plus sign for adding web parts to a page

  3. Click +, and then select Code snippet from the list of web parts.

  4. On the toolbar, select the language, whether you want numbered lines, and a light or dark theme.

    Code snippet web part in edit mode

  5. Click Edit web part Web part edit button on the left side to turn line wrapping on or off.

  6. When you're ready, click Publish at the top right of your page.

1 comment:

  1. BEST WAY TO GET YOUR EX LOVER BACK REUNITE TOGETHER CONTACT LORD ZULU DIRECTLY ON WHATSAPP +19097814612
    How to get your ex back fast! I was hurt and heart broken when a very big problem occurred in my marriage seven months ago, between me and my husband . so terrible that he took the case to court for a divorce. he said that he never wanted to stay with me again, and that he didn't love me anymore. So he packed out of the house and made me and my children pass through severe pain. I tried all my possible means to get him back, after much begging, but all to no avail. and he confirmed that he had made his decision, and he never wanted to see me again. So one evening, as I was coming back from work, I met an old friend of mine who asked my husband .So I explained everything to him, so he told me that the only way I can get my husband back is to visit a priest, because it has really worked for him too. So I never believed in spells, but I had no other choice, than to follow his advice. Then he gave me the Email address of the priest whom he visited. So the next morning, I sent a letter to the address he gave to me, and the priest assured me that I will get my husband back the next day. What an amazing statement!! I never believed, so he spoke with me, and told me everything that I needed to do. Then the next morning, So surprisingly, my husband who didn't call me for the past 7 months, gave me a call to inform me that he was coming back. So Amazing!! So that was how he came back that same day, with lots of love and joy, and he apologized for his mistake, and for the pain he caused me and my children. Then from that day, our relationship was now stronger than how it was before, by the help of a priest. So, I will advise you out there if you have any problem contact LORD ZULU, I give you 100% guarantee that he will help you.. or WhatsApp him on +1(909)7814612

    ReplyDelete