forked from LetsUpgrade/E-LEARNER
-
Notifications
You must be signed in to change notification settings - Fork 0
/
editor.html
52 lines (50 loc) · 1.59 KB
/
editor.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="practicepage.css">
<script src="https://kit.fontawesome.com/a4c432fcd6.js" crossorigin="anonymous"></script>
<title>Editor</title>
<style type="text/css" media="screen">
#editor {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.jumbotron{
position: absolute;
bottom: 0%;
right: 0%;
}
</style>
</head>
<body>
<div class="editorContainer" id="editor">function foo(items) {
var x = "All this is syntax highlighted";
return x;
}
</div>
<script src="ace.js" type="text/javascript" charset="utf-8"></script>
<script>
var editor = ace.edit("editor");
editor.setTheme("ace/theme/monokai");
editor.session.setMode("ace/mode/javascript");
</script>
<p>
<label>Text Area</label>
<textarea> id = "myTextArea"
rows = "3"
cols = "80">Your text here</textarea>
</p>
<div class="jumbotron">
<a class="btn btn-danger btn-lg" href="#" role="button">Submit</a>
<a class="btn btn-danger btn-lg" href="#" role="button">Help</a>
</div>
</body>
</html>