-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathhljs.html
More file actions
56 lines (49 loc) · 2.86 KB
/
hljs.html
File metadata and controls
56 lines (49 loc) · 2.86 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>code-input Tester</title>
<!--Import Highlight.JS-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css" id="theme-stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/xml.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/css.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/javascript.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/python.min.js"></script>
<!--Import code-input-->
<link rel="stylesheet" href="../code-input.css">
<script src="../code-input.js"></script>
<!--Import code-input plugins-->
<script src="../plugins/auto-close-brackets.js"></script>
<script src="../plugins/autocomplete.js"></script>
<link rel="stylesheet" href="../plugins/autocomplete.css">
<link rel="stylesheet" href="../plugins/autogrow.css">
<script src="../plugins/autodetect.js"></script>
<script src="../plugins/find-and-replace.js"></script>
<link rel="stylesheet" href="../plugins/find-and-replace.css">
<script src="../plugins/go-to-line.js"></script>
<link rel="stylesheet" href="../plugins/go-to-line.css">
<script src="../plugins/indent.js"></script>
<script src="../plugins/select-token-callbacks.js"></script>
<script src="../plugins/special-chars.js"></script>
<link rel="stylesheet" href="../plugins/special-chars.css">
<script src="tester.js"></script>
</head>
<body>
<h1>code-input Tester (highlight.js)</h1>
<h2>If the page doesn't load, please reload it, and answer the questions in alert boxes.</h2>
<h4><a href="prism.html">Test for Prism.js</a></h4>
<p>This page carries out automated tests for the code-input library to check that both the core components and the plugins work in some ways. It doesn't fully cover every scenario so you should test any code you change by hand, but it's good for quickly checking a wide range of functionality works.</p>
<details id="collapse-results"><summary>Test Results (Click to Open)</summary><pre id="test-results"></pre></details>
<form method="GET" action="afterform.html" target="_blank">
<code-input><textarea data-code-input-fallback name="q" placeholder="language auto-detected">console.log("Hello, World!");
// A second line
// A third line with <html> tags</textarea></code-input>
<input type="submit" value="Test HTML Form"/>
</form>
<script>
beginTest(true);
</script>
</body>
</html>