diff --git a/layouts/shortcodes/paige/code.html b/layouts/shortcodes/paige/code.html
index f41f75b6..17940e2a 100644
--- a/layouts/shortcodes/paige/code.html
+++ b/layouts/shortcodes/paige/code.html
@@ -6,7 +6,7 @@
{{ $contentstyle := .Get "contentstyle" }}
{{ $style := .Get "style" }}
-{{ $lang := .Get 0 | default (.Get "lang") }}
+{{ $lang := .Get 0 | default (.Get "lang") | default "plaintext" }}
{{ $options := .Get "options" }}
{{ if $caption }}