diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-07-31 14:44:23 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-07-31 14:44:23 +0200 |
commit | 171e7a112b85c103358bf9e45f60a35c71d298c3 (patch) | |
tree | 44f5d81215eebdde1205b5e58adf0054ff1d928b /groff-ms.outlang | |
parent | 5db9a7cbae982a68e99f80f77abebef6a873e6b4 (diff) | |
download | groff-tools-171e7a112b85c103358bf9e45f60a35c71d298c3.tar.gz |
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.
Diffstat (limited to 'groff-ms.outlang')
-rw-r--r-- | groff-ms.outlang | 40 |
1 files changed, 40 insertions, 0 deletions
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 |