changeset 6405:cdb9c2616c05

mod_block_registrations: Enable syntax highlighting in examples
author Kim Alvefur <zash@zash.se>
date Sat, 14 Feb 2026 12:57:51 +0100
parents a1df76ba4f68
children cab284eaeb81
files mod_block_registrations/README.md
diffstat 1 files changed, 12 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/mod_block_registrations/README.md	Sat Feb 14 12:57:22 2026 +0100
+++ b/mod_block_registrations/README.md	Sat Feb 14 12:57:51 2026 +0100
@@ -13,9 +13,11 @@
 
 Enable the module as any other:
 
-    modules_enabled = {
-      "block_registrations";
-    }
+``` lua
+modules_enabled = {
+    "block_registrations";
+}
+```
 
 You can then set some options to configure your desired policy:
 
@@ -30,11 +32,13 @@
 
 Some examples:
 
-    block_registrations_users = { "admin", "root", "xmpp" }
-    block_registrations_matching = {
-      "master$" -- matches anything ending with master: postmaster, hostmaster, webmaster, etc.
-    }
-    block_registrations_require = "^[a-zA-Z0-9_.-]+$" -- Allow only simple ASCII characters in usernames
+``` lua
+block_registrations_users = { "admin", "root", "xmpp" }
+block_registrations_matching = {
+    "master$" -- matches anything ending with master: postmaster, hostmaster, webmaster, etc.
+}
+block_registrations_require = "^[a-zA-Z0-9_.-]+$" -- Allow only simple ASCII characters in usernames
+```
 
 Compatibility
 =============