From 93d08988d945b9f809f7b64cdc982b4c5a29c66e Mon Sep 17 00:00:00 2001 From: Jason Morley Date: Sat, 28 Feb 2026 13:36:57 -1000 Subject: [PATCH] docs: Add OPL example and syntax highlighting --- docs/_layouts/default.html | 1 + docs/docs/cli/runopo/index.md | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index be2452db..3fca61b1 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -18,6 +18,7 @@ + diff --git a/docs/docs/cli/runopo/index.md b/docs/docs/cli/runopo/index.md index 0f3861cd..a7c9e9ff 100644 --- a/docs/docs/cli/runopo/index.md +++ b/docs/docs/cli/runopo/index.md @@ -14,6 +14,18 @@ Run OPL programs on the command line. This is only suitable for simple programs # Example +```opl +PROC test: + PRINT "hello world" + wat: + GET +ENDP + +PROC wat: + PRINT "Waaaat" +ENDP +``` + [simple.txt](https://github.com/inseven/opolua/blob/main/examples/Tests/simple.txt) compiled on a Psion Series 5: ```plaintext