Yes it definitely does let you display code with echo. I've done it hundreds of times. The code you referenced from the page looks like you pasted it into design view instead of code view... but the code on the page you attached looks correct.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.