-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtml.html
More file actions
58 lines (47 loc) · 1.23 KB
/
html.html
File metadata and controls
58 lines (47 loc) · 1.23 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
57
58
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Syntax Highlighter Test</title>
</head>
<body>
<h1>Highlighting Test for Multiple Embedded Languages</h1>
<!-- Embedded JavaScript -->
<script>
function greet(name) {
console.log("Hello, " + name + "!");
}
greet("World");
</script>
<!-- Classic ASP using JavaScript -->
<script language="javascript" runat="server">
var user = "ASP User";
Response.Write("Welcome, " + user);
</script>
<!-- Embedded Python (for templating engines like Jinja2, Django) -->
<div>
{% if user %}
<p>Hello {{ user }}</p>
{% else %}
<p>Hello guest</p>
{% endif %}
</div>
<!-- Embedded SGML example -->
<!--!ELEMENT greeting (#PCDATA) -->
<!--!ATTLIST greeting lang CDATA #IMPLIED -->
<!-- Embedded VBScript -->
<script language="VBScript">
Dim message
message = "Hello from VBScript"
MsgBox message
</script>
<!-- Embedded PHP -->
<?php
$name = "PHP User";
echo "<p>Hello, $name</p>";
?>
<footer>
<p>© 2025 Multi-Language Syntax Test</p>
</footer>
</body>
</html>