html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!--
disclaimer: This editor is used by sololearn
And its not my work in any ways i m just demonstrating the use of ace editor for ur projects -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>ACE in Action</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<style type="text/css" media="screen">
#editor {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
</style>
</head>
<body>
<div id="editor">function foo(items) {
var x = "All this is syntax highlighted";
return x;
}</div>
<script src="https://cdn.rawgit.com/ajaxorg/ace-builds/c915483e/src-noconflict/ace.js" charset="utf-8"></script>
<script>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
body {
}
Enter to Rename, Shift+Enter to Preview
js
js
1
alert("disclaimer: This editor is used by sololearn And its not my work in any ways i m just demonstrating the embedding of ace editor for ur projects");
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run