Sha256: edbd89ecef9dd864bdc2128e7ea9e7c23f9b19cb0422900133072a748a3767b4

Contents?: true

Size: 1.3 KB

Versions: 5

Compression:

Stored size: 1.3 KB

Contents

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>Editor</title>
  <style type="text/css" media="screen">

	.ace_editor {
		border: 1px solid lightgray;
		margin: auto;
		height: 200px;
		width: 80%;
	}
	.scrollmargin {
		height: 80px;
        text-align: center;
	}
    </style>
</head>
<body>

<h1>Filler</h1>
    <h1>Filler</h1>
    <h1>Filler</h1>
    <h1>Filler</h1>
    <h1>Filler</h1>
    <h1>Filler</h1>
    <h1>Filler</h1>
    <h1>Filler</h1>
    <h1>Filler</h1>
    <h1>Filler</h1>
    <h1>Filler</h1>
    <h1>Filler</h1>
    <h1>Filler</h1>
    <h1>Filler</h1>
    <h1>Filler</h1>
    <h1>Filler</h1>
    <h1>Filler</h1>
    <h1>Filler</h1>
<div id="editor">function foo(items) {
    var x = "All this is syntax highlighted";
    return x;
}</div>
<button id="action">Click Me!</button>


<!-- load ace -->
<script src="../src/ace.js"></script>
<script>

    var editor = ace.edit("editor");
editor.setTheme("ace/theme/monokai");
editor.session().setMode("ace/mode/javascript");
 document.getElementById("action").addEventListener('click',function () {
   editor.navigateTo(0,0);
   editor.getSelection().selectTo(0,5);
   editor.focus();
   return false;
 });
</script>

<script src="./show_own_source.js"></script>

</body>
</html>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/ace-builds/demo/autoresize - Copy.html
optimacms-0.4.3 spec/dummy/node_modules/ace-builds/demo/autoresize - Copy.html
optimacms-0.4.2 spec/dummy/node_modules/ace-builds/demo/autoresize - Copy.html
optimacms-0.3.35 node_modules/ace-builds/demo/autoresize - Copy.html
optimacms-0.3.34 node_modules/ace-builds/demo/autoresize - Copy.html