Prism.js Syntax Highlighting examples
CSS Example
.title {
color: #2f2f2f;
font-size: 2rem;
margin-bottom: 15px;
}
#main:hover {
background-color: rgba(0, 0, 0, 0.05);
}
Javascript Example
function greet(name) {
const message = `Hello, ${name}!`;
console.log(message);
return true;
}
greet('Prism User');
Using Prism.js for Syntax Highlighting
<link rel="stylesheet" href="
https://cdn.jsdelivr.net/npm/prismjs/themes/prism-tomorrow.min.css">