If you're asking about how he placed that code in that gray box, then, assuming you have the QWERTY keyboard layout, all you have to do is press the backtick button three times (```) and the gray box will appear. It's directly above the tab key.
--
Software Engineer for Boeing
Love podcasts or audiobooks? Learn on the go with our new app.