Prism.js Syntax Highlighting Demo

This page demonstrates simple syntax highlighting using Prism.js.

Example: JavaScript


// This is a comment
function greet(name) {
	const message = `Hello, ${name}!`;
	console.log(message);
}

greet("Terry");
	

Example: HTML


<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Sample Page</title>
</head>
<body>
	<h1>Hello World</h1>
</body>
</html>
	

Example: CSS


body {
	background-color: #1e1e1e;
	color: #d4d4d4;
	font-family: "Segoe UI", sans-serif;
}

h1 {
	color: #4ec9b0;
}