One popular way is to use pre and or code tags. We had a link-exchange page which needed to show the HTML for people to copy-pasta, and this sounds like what you want to do as well:
<p class="code"><code><a href="http://example.com" title="Example Co">Example Co</a></code></p>
Where example.com was our url and the title was for mouseover tooltips (rather redundant but the manager wanted them, and notice the < and > symbols were typed out manually using named character entities (if you really are writing XHTML these are still good, because remember HTML has like 200 or so of these things but real XHTML only has 5, 4 of which it shares with HTML). So the < represents "<" etc. On the web page itself, people will see the < > brackets normally.
The class of "code" was for styling. You don't have to have a class with that name and you can of course just have any styling direct in the CSS:
since "code" is a valid HTML element. I'd have to look it up but I believe code tags are inline elements like anchors.
*edit yes they are.