diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-29 13:37:25 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-29 14:18:13 +0100 |
| commit | 0efe669278a5e1c3f2985eba2f3360e91159c54a (patch) | |
| tree | 502712857c48f0decb5e698257c0a96d358a436e /tests/typ/text/code.typ | |
| parent | 836692e73cff0356e409a9ba5b4887b86809d4ca (diff) | |
Reorganize library and tests
Diffstat (limited to 'tests/typ/text/code.typ')
| -rw-r--r-- | tests/typ/text/code.typ | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/tests/typ/text/code.typ b/tests/typ/text/code.typ deleted file mode 100644 index d89f1c05..00000000 --- a/tests/typ/text/code.typ +++ /dev/null @@ -1,58 +0,0 @@ -// Test code highlighting. - ---- -#set text(6pt) -```typ -= Chapter 1 -#lorem(100) - -#let hi = "Hello World" -#show heading: emph -``` - ---- -#set page(width: 180pt) -#set text(6pt) - -```rust -/// A carefully designed state machine. -#[derive(Debug)] -enum State<'a> { A(u8), B(&'a str) } - -fn advance(state: State<'_>) -> State<'_> { - unimplemented!("state machine") -} -``` - ---- -#set text(6pt) -```py -import this - -def hi(): - print("Hi!") -``` - ---- -#set page(width: 180pt) -#set text(6pt) - -#rect(inset: (x: 4pt, y: 5pt), radius: 4pt, fill: rgb(239, 241, 243))[ - ```html - <!DOCTYPE html> - <html> - <head> - <meta charset="utf-8"> - </head> - <body> - <h1>Topic</h1> - <p>The Hypertext Markup Language.</p> - <script> - function foo(a, b) { - return a + b + "string"; - } - </script> - </body> - </html> - ``` -] |
