Skip to content

pfych/uxntal-kate-syntax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Syntax Highlighting for uxntal

This syntax defintion is not fully complete.

Goals

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...

Usage

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

Default syntax colours

The colours in the image are the default Pandoc CSS styles, colours can be easily changed with a bit of CSS wizzardry.

About

Kate syntax definition for uxntal

Topics

Resources

License

Stars

Watchers

Forks