Skip to content

Instantly share code, notes, and snippets.

@kosirm
Created September 21, 2017 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kosirm/0a4bac7902fc47cd8826ed2eb3bdefa8 to your computer and use it in GitHub Desktop.
Save kosirm/0a4bac7902fc47cd8826ed2eb3bdefa8 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/ace-emmet/1
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
<script src="https://rawgithub.com/ajaxorg/ace-builds/master/src/ace.js"></script>
<script src="https://rawgithub.com/ajaxorg/ace-builds/master/src/ext-emmet.js"> </script>
<script src="https://rawgithub.com/nightwing/emmet-core/master/emmet.js"></script>
</head>
<body>
<p id="hello" style="height: 200px">
</p>
<script id="jsbin-javascript">
document.getElementById("hello").innerHTML = "<strong>This URL does not have any code saved to it.</strong>";
</script>
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
<script src="https://rawgithub.com/ajaxorg/ace-builds/master/src/ace.js"><\/script>
<script src="https://rawgithub.com/ajaxorg/ace-builds/master/src/ext-emmet.js"> <\/script>
<script src="https://rawgithub.com/nightwing/emmet-core/master/emmet.js"><\/script>
</head>
<body>
<p id="hello" style="height: 200px">
</p>
</body>
<script>
ace = ace.edit("hello")
ace.session.setMode("ace/mode/html")
ace.setValue(document.documentElement.innerHTML, -1)
var Emmet = require("ace/ext/emmet"); // important to trigger script execution
ace.setOption("enableEmmet", true);
<\/script>
</html>
</script>
<script id="jsbin-source-javascript" type="text/javascript">document.getElementById("hello").innerHTML = "<strong>This URL does not have any code saved to it.</strong>";
</script></body>
<script>
ace = ace.edit("hello")
ace.session.setMode("ace/mode/html")
ace.setValue(document.documentElement.innerHTML, -1)
var Emmet = require("ace/ext/emmet"); // important to trigger script execution
ace.setOption("enableEmmet", true);
</script>
</html>
document.getElementById("hello").innerHTML = "<strong>This URL does not have any code saved to it.</strong>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment