-
Notifications
You must be signed in to change notification settings - Fork 2
/
.headers.txt.tmp
60 lines (58 loc) · 1.69 KB
/
.headers.txt.tmp
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
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ACE Autocompletion demo</title>
<style type="text/css" media="screen">
body {
overflow: hidden;
}
#editor {
margin: 0;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
</style>
</head>
<body>
<pre id="editor">GET https://www.google.com/ HTTP/1.1
Host: www.google.com
User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Ranges: bytes
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Server: gws
Connection: keep-alive
Cookie: PHPSESSID=r2t5uvjq435r4q7ib3vtdjq120
Pragma: no-cache
Cache-Control: max-age=500
Content-Length: 3700
Set-Cookie: GCLB=CKGG29iqi-eWWA; path=/; HttpOnly; expires=Mon, 23-Mar-2020 09:46:08 GMT</pre>
<!-- load ace -->
<script src="file:///android_asset/src-noconflict/ace.js"></script>
<!-- load ace language tools -->
<script src="file:///android_asset/src-noconflict/ext-language_tools.js"></script>
<script>
// trigger extension
ace.require("ace/ext/language_tools");
var editor = ace.edit("editor");
editor.session.setMode("ace/mode/c_cpp");
editor.setShowPrintMargin(false);
editor.getSession().setUseWrapMode(true);
var code = editor.getValue();
//editor.setValue("new code " + code);
//enable autocompletion and snippets
editor.setOptions({
enableBasicAutocompletion: true,
enableSnippets: true,
enableLiveAutocompletion: true
});
</script>
</body>
</html>