BS5 Simply Blog Bludit Theme Demo

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.

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');

🐒

This text comes from the optional Bludit About plugin.
Social Media
Github
Twitter
Mastodon
RSS
RSS
Powered by BS5 Simply Blog and Bludit
Navigation