How to show code output in text?

If I’ll find my old work from this website https://ipayzz.com/credit-card/ , I’ll tell you how to do that, but for now I can only recommend you to look for answers on youtube. I found solution there.