- Java version
- Python version
- C++ version
This program adds syntax highlighting to your clipboard (using ANSI color codes) when copying pattern data in OpenMPT.
The main purpose of this program is to paste syntax-highlighted OpenMPT pattern data in Discord, using ansi
Markdown code blocks.
Discord screenshot, showing a section of an OpenMPT pattern, with and without syntax highlighting.
[EXEC] [OPTIONS] [COLORS]
Options:
-h
or--help
: Help (show all available options)-i
or--stdin
: Read input from STDIN instead of clipboard-o
or--stdout
: Write output to STDOUT instead of clipboard-d
or--markdown
: Wrap output inansi
Markdown code block (for Discord)-r
or--reverse
: Reverse mode (removes syntax highlighting instead of adding)
Using -d
(--markdown
) does nothing if -r
(--reverse
) is also enabled.
Colors:
X,X,X,X,X,X,X,X
- Each value from 0 to 15 (Discord only supports 0 to 7)
format: Default,Note,Instrument,Volume,Panning,Pitch,Global,ChannelSeparator
if not provided: 7,5,4,2,6,3,1,7