From c2807cad6ee36339d1af3e103946d48a3f8cc3bf Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Fri, 26 Aug 2016 16:49:39 +0200 Subject: Add examples to doc --- doc/fuspel.sty | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 doc/fuspel.sty (limited to 'doc/fuspel.sty') diff --git a/doc/fuspel.sty b/doc/fuspel.sty new file mode 100644 index 0000000..7ac2bd7 --- /dev/null +++ b/doc/fuspel.sty @@ -0,0 +1,33 @@ +\RequirePackage{listings} +\RequirePackage{xcolor} + +\colorlet{punct}{white!60!black} +\colorlet{numb}{white!30!black} + +\lstdefinelanguage{fuspel}{ + showstringspaces=false, + morekeywords={code,main}, + keepspaces=true, + literate= + *{0}{{{\color{numb}0}}}{1} + {1}{{{\color{numb}1}}}{1} + {2}{{{\color{numb}2}}}{1} + {3}{{{\color{numb}3}}}{1} + {4}{{{\color{numb}4}}}{1} + {5}{{{\color{numb}5}}}{1} + {6}{{{\color{numb}6}}}{1} + {7}{{{\color{numb}7}}}{1} + {8}{{{\color{numb}8}}}{1} + {9}{{{\color{numb}9}}}{1} + {:}{{{\color{punct}{:}}}}{1} + {;}{{{\color{punct}{;}}}}{1} + {,}{{{\color{punct}{,}}}}{1} + {=}{{{\color{punct}{=}}}}{1} + {!}{{{\color{punct}{\textbf{!}}}}}{1} + {(}{{{\color{punct}{(}}}}{1} + {)}{{{\color{punct}{)}}}}{1} + {[}{{{\color{punct}{[}}}}{1} + {]}{{{\color{punct}{]}}}}{1} +} + +\newcommand{\fuspel}[1]{\lstinline[language=fuspel]$#1$} -- cgit v1.2.3