From 171e7a112b85c103358bf9e45f60a35c71d298c3 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 31 Jul 2024 14:44:23 +0200 Subject: added Lua-based HIGHLIGHT macro and groff-ms.outlang for ms macros * the highlight.sno and highlight.lua macros are considerde deprecated in favor of pygments-groff.py. --- groff-ms.outlang | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 groff-ms.outlang (limited to 'groff-ms.outlang') diff --git a/groff-ms.outlang b/groff-ms.outlang new file mode 100644 index 0000000..c7af6db --- /dev/null +++ b/groff-ms.outlang @@ -0,0 +1,40 @@ +extension "ms" + +bold "\f[CB]$text\fP" +italics "\f[CI]$text\fP" +underline "\f[CI]$text\fP" +fixed "\f[CR]$text\fP" +color "\m[$style]$text\m[black]" + +#anchor "$infilename : $linenum - $text" +#reference "$text \(-> $infile:$linenum, page : $infilename:$linenum" + +# lines may be empty, so begin them with the non-spacing \& +# also, this allows "." and "'" at the beginning of the line +lineprefix "\&" + +colormap +"green" "green" +"red" "red" +"darkred" "darkred" +"blue" "blue" +"brown" "brown" +"pink" "pink" +"yellow" "yellow" +"cyan" "cyan" +"purple" "purple" +"orange" "orange" +"brightorange" "brightorange" +"brightgreen" "brightgreen" +"darkgreen" "darkgreen" +"black" "black" +"teal" "teal" +"gray" "gray" +"darkblue" "darkblue" +default "black" +end + +translations +"\\" "\\e" +#"\t" " " +end -- cgit v1.2.3