main.odin

 1 package main
 2
 3 type Theme :: struct {{
 4     name   : string
 5     colors : map[string]string
 6 }}
 7
 8 when true {{
 9     theme := Theme{{}}
10     theme.colors["background"] = "#10141C"
11     theme.colors["keyword"]    = "#FF8F3F"
12     theme.colors["string"]     = "#AAD94C"
13
14     // Operator demo
15     value := 42 + 1
16
17     // Builtin + lambda
18     print := proc(msg: string) {{
19         println(msg)
20     }}
21
22     warning("This is a themed warning")
23     print("value = " + to_string(value))
24 }}
Line 24, Column 4 Odin AI:Enabled

Syntax

System (optional)

Your theme (paste this into .hackerman)