You mean in a post? Yep, documenting your source code is easy enough... in fact, there is a code BB code to do that in the post editor.
it gives you these options (actually a a few more, but the screenshot cut some off. You "write it" as you normally would... But the thing is, it's only for viewing. You can't do anything that would cause it to run on a remote computer.