Basic syntax highlighting

This commit is contained in:
Nathan McCarty 2025-02-04 03:10:40 -05:00
parent 2c38910ccd
commit 37e92392ca
4 changed files with 87 additions and 3 deletions

View file

@ -5,3 +5,27 @@ module Posts.HelloWorld
%default total
```
Here is an example function that prints to the standard out:
```idris
main : IO ()
main = do
putStrLn "Hello World"
putStrLn "Hello \n with new lines \n world"
putStrLn "And some other potential problem characters: * _"
```
And a function with some more stuff:
```idris
-- A regular comment
||| A doc comment
thingomizer : (a : String) -> IO ()
thingomizer a =
let xs = map (+ 1) [1, 2, 3, 4]
in do
putStrLn a
printLn xs
```