Syntax highlighting
This theme optionally uses highlight.js to allow for syntax highlighting of code blocks. All Javascript and CSS used by highlight.js is sourced from your website.
Customization
You can customize which languages highlight.js should support. This will affect the size of the highlight.min.js file. Please check the website for the highlight.js package on how to download a custom version of it to suit your needs.
Included languages
The following languages are included with the theme: apache, arduino, asciidoc, awk, bash, basic, c, coffeescript, cpp, css, delphi, django, dns, dockerfile, dos, fortran, go, handlebars, haskell, http, ini, javascript, json, latex, lisp, lua, makefile, markdown, nginx, ocaml, pgsql, php, plaintext, puppet, python, ruby, rust, scss, sql, tcl, twig, typescript, vbscript, vim, wasm, x86asm, xml, and yaml.
Examples
Here’s an example of Python code:
# This program prints Hello, world!
print('Hello, world!')
The actual HTML content looks like this:
<pre><code class="language-python">
# This program prints Hello, world!
print('Hello, world!')
</code></pre>
Here’s an example of PHP code:
/* This program prints Hello, world! */
echo 'Hello, world!';
The actual HTML content looks like this:
<pre><code class="language-php">
/* This program prints Hello, world! */
echo 'Hello, world!';
</code></pre>
Here’s an example of SQL:
CREATE TABLE "topic" (
"id" integer NOT NULL PRIMARY KEY,
"forum_id" integer NOT NULL,
"subject" varchar(255) NOT NULL
);
ALTER TABLE "topic"
ADD CONSTRAINT forum_id FOREIGN KEY ("forum_id")
REFERENCES "forum" ("id");
-- Initials
insert into "topic" ("forum_id", "subject")
values (2, 'D''artagnian');