How to Add a Code Block in Google Sites 

To display code snippets on your Google Site, follow these steps: 

How to?

Insert a Text Box:

Enter Your Code:

Access Text Formatting Options:

Select the Code Option: