16 Apr 2025, 17:41

Highlight testaroo

Syntax Highlighting Test

This file includes code blocks in multiple languages to confirm Hugo’s syntax highlighting.

Add this to Perl journal head tag:

HTML

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>

Perl

my $name = "Rob";
print "Hello, $name!\n";

Bash

#!/bin/bash
echo "Hello from Bash"
ls -l /home/robnugen

PHP

<?php
echo "Hello from PHP!";
?>

JSON

{
  "name": "Rob",
  "role": "Connection Coach",
  "barefoot": true
}

No Language Specified

This is a code block with no language.

It should still render with a monospaced font,
but no syntax highlighting.