-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Syntax-highlight colourize comments in pre blocks
- Loading branch information
Showing
5 changed files
with
140 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<!DOCTYPE html> | ||
|
||
<head> | ||
<meta name="generator" content="subdoc"></meta> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"></meta> | ||
<meta property="og:type" content="website"></meta> | ||
<meta property="og:site_name" content="PROJECT NAME"></meta> | ||
<title>Syntax - PROJECT NAME</title> | ||
<meta property="og:title" content="Syntax - PROJECT NAME"></meta> | ||
<meta name="description" content="A code block with syntax highlighting."></meta> | ||
<meta property="og:description" content="A code block with syntax highlighting."></meta> | ||
<link rel="stylesheet" href="../subdoc-test-style.css"> | ||
<link rel="icon" type="image/svg+xml" href="../icon.svg"> | ||
<link rel="alternate icon" type="image/png" href="../icon.png"> | ||
<meta property="og:image" content="../icon.svg"></meta> | ||
</head> | ||
|
||
<body> | ||
<nav class="topbar"> | ||
<button class="sidebar-menu-button" onclick="let e = document.getElementsByClassName('sidebar')[0];e.classList.toggle('shown');"> | ||
☰ | ||
</button> | ||
<a class="topbar-logo-link" href="index.html"><div class="topbar-logo-border"> | ||
<img class="topbar-logo" src="PROJECT LOGO.png"></img> | ||
</div></a> | ||
<span class="topbar-text-area"> | ||
<span class="topbar-title"> | ||
<a href="#">Syntax</a> | ||
</span> | ||
</span> | ||
</nav> | ||
<nav class="sidebar"> | ||
<a class="sidebar-logo-link" href="index.html"><div class="sidebar-logo-border"> | ||
<img class="sidebar-logo" src="PROJECT LOGO.png"></img> | ||
</div></a> | ||
<div class="sidebar-pretitle sidebar-text"> | ||
struct | ||
</div> | ||
<div class="sidebar-title sidebar-text"> | ||
<a href="#">Syntax</a> | ||
</div> | ||
<div class="sidebar-subtitle sidebar-text"> | ||
</div> | ||
<div class="sidebar-links sidebar-text"> | ||
<ul> | ||
</ul> | ||
</div> | ||
</nav> | ||
<main> | ||
<div class="type record struct"> | ||
<div class="section overview"> | ||
<div class="section-header"> | ||
<span> | ||
Struct | ||
</span> | ||
<a class="project-name" href="index.html">PROJECT NAME</a> | ||
<span class="namespace-dots">::</span> | ||
<a class="type-name" href="#">Syntax</a> | ||
</div> | ||
<div class="type-signature"> | ||
<span class="struct"> | ||
struct | ||
</span> | ||
<span class="type-name"> | ||
Syntax | ||
</span> | ||
<div class="record-body"> | ||
{ ... }; | ||
</div> | ||
</div> | ||
<div class="description long"> | ||
<p>A code block with syntax highlighting.</p> | ||
<pre><code>A comment; <span class="comment">// At the end of the line.</span> | ||
<span class="comment">// At the start of the line.</span> | ||
<span class="comment">// And after some whitespace.</span> | ||
</code></pre> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters