From 9b72ee4d221d1e9e8031e53631aaccd06841ff04 Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin <35292584+Myriad-Dreamin@users.noreply.github.com> Date: Mon, 17 Jul 2023 22:43:33 +0800 Subject: Load theme for raw code (#1675) --- tests/typ/text/raw-theme.typ | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/typ/text/raw-theme.typ (limited to 'tests/typ/text') 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 +``` -- cgit v1.2.3