-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-code-highlight.html
More file actions
34 lines (28 loc) · 992 Bytes
/
test-code-highlight.html
File metadata and controls
34 lines (28 loc) · 992 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test Code Highlighting</title>
<style>
body { font-family: Arial, sans-serif; padding: 20px; }
pre { background: #f4f4f4; padding: 10px; overflow-x: auto; }
code { font-family: monospace; }
</style>
</head>
<body>
<h1>Test Code Highlighting</h1>
<p>Before code block with inline <code>final</code> keyword.</p>
<pre><code class="language-php"><?php
final class PaymentProcessor {
private array $transactions = [];
public function process(float $amount): void {
// Critical business logic that shouldn't be modified
$this->transactions[] = $amount;
}
}
// This causes an error - can't extend final class
// class MockPaymentProcessor extends PaymentProcessor {}</code></pre>
<p>After code block. This text should be normal paragraph style.</p>
<script src="/js/syntax-highlighter.js"></script>
</body>
</html>