This syntax defintion is not fully complete.
I like to take notes when learning a programming language, this is the first time my notes on my site havent had syntax highlighting. So obviously instead of learning the language I should write syntax defintions for it...
Please feel free to open Issues and PRs! I've likely made mistakes...
This definition file was created to be used alongside Pandoc to add syntax highlighting to generated HTML documents.
# Markdown Example
```uxntal
( Devices )
|10 @Console
&vector $2
&read $1
&pad $5
&write $1
&error $1
( Macros )
%EMIT { .Console/write DEO }
%NL { #0a EMIT }
( Main Program )
|0100
LIT "H EMIT
LIT "e EMIT
LIT "l EMIT
LIT "l EMIT
LIT "o EMIT
NL
```
Hello World
pandoc example.md --syntax-defintion=uxn.xml > example.html
The colours in the image are the default Pandoc CSS styles, colours can be easily changed with a bit of CSS wizzardry.