summaryrefslogtreecommitdiff
path: root/tests/typ/text
diff options
context:
space:
mode:
authorMyriad-Dreamin <35292584+Myriad-Dreamin@users.noreply.github.com>2023-07-17 22:43:33 +0800
committerGitHub <noreply@github.com>2023-07-17 16:43:33 +0200
commit9b72ee4d221d1e9e8031e53631aaccd06841ff04 (patch)
treea5b5d66a573155d35ef3e46f1e8dea53ef4d54a3 /tests/typ/text
parente0e797c27d4eff3fbca2a182aee2700f20ed6c21 (diff)
Load theme for raw code (#1675)
Diffstat (limited to 'tests/typ/text')
-rw-r--r--tests/typ/text/raw-theme.typ24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/typ/text/raw-theme.typ b/tests/typ/text/raw-theme.typ
new file mode 100644
index 00000000..71b59688
--- /dev/null
+++ b/tests/typ/text/raw-theme.typ
@@ -0,0 +1,24 @@
+// Test code highlighting with custom theme.
+
+---
+#set page(width: 180pt)
+#set text(6pt)
+#set raw(theme: "/files/halcyon.tmTheme")
+#show raw: it => {
+ set text(fill: rgb("a2aabc"))
+ rect(
+ width: 100%,
+ inset: (x: 4pt, y: 5pt),
+ radius: 4pt,
+ fill: rgb("1d2433"),
+ place(right, text(luma(240), it.lang)) + it,
+ )
+}
+
+```typ
+= Chapter 1
+#lorem(100)
+
+#let hi = "Hello World"
+#show heading: emph
+```