Facing difficultly in show code

How we can show the code on the website?

you mean a snippet of raw code?

When you ask a question it is helpful if you include more detail and an example of what you have tried, and a link to your repo if possible.

What have you tried? using markdown or html?

One way is to use {% raw %} and {% endraw %}

Here is another way in the docs: