How to display TinyMCE HTML view?

After analyzing sources of /wp-admin/ I realized that TinyMCE HTML view is just another textarea…

Anyways, here’s the answer (everything works like a charm excepting the “img” button, but you can hide it easily with CSS – #ed_img {display: none} ).

<div id="postdivrich" class="postarea">

    <div id="editor-toolbar">
       <script type="text/javascript" src="http://localhost/wordpress/wp-includes/js/quicktags.js?ver=20110502"></script>
       <script type="text/javascript">edToolbar()</script>
    </div>

    <div id='editorcontainer'>
       <textarea rows="20" cols="40" tabindex='2' id='content' name="your_name"></textarea>
    </div>

    <script type="text/javascript">
       edCanvas = document.getElementById('content');
    </script>

    <table id="post-status-info" cellspacing="0"><tbody><tr><td><span>Textarea's description</span></td></tr></tbody></table>

</div>

Oh, and of course this is just a source “copypasta”, don’t forget to enqueue quicktags.js.