Here's multiple help.
For the post options:
<label><input type="checkbox" class="checkbox" name="postoptions[toggleraweditor]" value="0"> <strong>Raw Editor</strong></label>
For the coolio shit that makes this thingy toggle:
jQuery("input.checkbox[name='toggleraweditor']").on("click", function(){
if ( jQuery(this).is(":checked") == true ) {
jQuery("textarea#message").css({display:"block"});
jQuery("div[style='padding: 5px 2px; background-color: #272822;']").css({display:"none"}); // can we please get an id or class on this thing?
} else if ( jQuery(this).is(":checked") == false ) {
jQuery("textarea#message").css({display:"none"});
jQuery("div[style='padding: 5px 2px; background-color: #272822;']").css({display:"block"});
}
});
Something along those lines should work.