diff --git a/Commands/Run Javascript.tmCommand b/Commands/Run Javascript.tmCommand index 65690d9..f2ff0db 100644 --- a/Commands/Run Javascript.tmCommand +++ b/Commands/Run Javascript.tmCommand @@ -36,8 +36,11 @@ cat <<HTML }catch(e){ console.log(e.message); }; })(); </script> -<pre id="log"> +<input type="button" value="Show Code" onclick="var c=document.getElementById('code');c.style.display==''?c.style.display='none':c.style.display='';" /> +<pre id="code" style="display:none"> $YOURCODE +</pre> +<pre id="log"> <script> try{throw {}}catch(e){ window.__line=(e.line||0) + 3 }; try{