Code Syntax Highlighting Examples

A showcase of syntax highlighting for various programming languages

Dev Writer
Dev Writer
August 10, 2023
5 min read
Code Syntax Highlighting Examples

Code Syntax Highlighting Examples

This post demonstrates how our blog handles syntax highlighting for various programming languages. Proper syntax highlighting makes code more readable and helps distinguish between different elements of the code.

HTML Example

HTML is the standard markup language for documents designed to be displayed in a web browser.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>HTML Example</title>
  <link rel="stylesheet" href="styles.css">
</head>
<body>
  <div class="container">
    <h1 class="title">Hello World!</h1>
    <p>This is a paragraph with <strong>bold text</strong> and <em>italic text</em>.</p>
    <!-- This is a comment -->
    <button onClick="alert('Hello!')">Click Me</button>
  </div>
  <script src="script.js"></script>
</body>
</html>