How do you stop a shortcode from firing in the editor?

First follow what the codex says Shortcodes. Basically you just wrap your html in ob_start(); this will return the html as a string so you can echo it.
1st way :

function my_shortcode() {
ob_start();
?> <HTML> <here> ... <?php
return ob_get_clean();

}

2nd way

function my_shortcode() {
$output="";
$output.= '<html>content</html>';
return $output;

}