ποΈ Prism
Prism code highlighting test.
Prism Code Highlighting Test - PHP
<?php
// Simple PHP function example
function greet($name) {
return "Hello, " . htmlspecialchars($name) . "!";
}
echo greet("Stacy");
?>
Prism Code Highlighting Test - HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prism Highlighting Test</title>
</head>
<body>
<h1>Hello, Prism!</h1>
<p>This is a simple HTML example using Prism.js.</p>
</body>
</html>
Prism Code Highlighting Test - CSS
/* Prism Highlighting Test */
body {
background-color: #181818;
color: #f8f8f2;
font-family: Arial, sans-serif;
}
h1 {
color: #ffcc00;
text-align: center;
}
button {
background: #0078d7;
color: white;
padding: 10px 20px;
border: none;
cursor: pointer;
}
button:hover {
background: #005a9e;
}
Prism Code Highlighting Test - SQL
-- Create a simple users table
CREATE TABLE users (
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(100) NOT NULL,
email VARCHAR(255) UNIQUE NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
-- Insert sample data
INSERT INTO users (name, email) VALUES ('Stacy', 'stacy@example.com');
-- Retrieve all users
SELECT * FROM users;
Prism Code Highlighting Test - Markdown
# Prism.js Markdown Example
## Lists
- Item 1
- Item 2
- Item 3
## Code Block
<code class="language-php">
echo "Hello, Markdown!";
</code>
## Links
[Visit Prism.js](https://prismjs.com)
## Bold & Italics
**Bold Text**
*Italic Text*
Prism Code Highlighting Test - C#
using System;
public class Program
{
public static void Main()
{
Console.WriteLine("Hello, Prism!");
}
}
Prism Code Highlighting Test - Apacheconf
# Enable mod_rewrite
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?route=$1 [L,QSA]
</IfModule>
# Set custom error pages
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
# Prevent directory listing
Options -Indexes
Prism Code Highlighting Test - JSON
{
"name": "Stacy",
"skills": [
"Backend development",
"Database design",
"CodeIgniter debugging"
],
"interests": {
"music": "AI-generated tracks",
"design": "Minimalist dark themes"
}
}
Prism Code Highlighting Test - INI
[Database]
host = localhost
port = 3306
username = root
password = secret
[Server]
max_connections = 100
timeout = 30