diff options
author | Camil Staps | 2016-08-26 16:49:39 +0200 |
---|---|---|
committer | Camil Staps | 2016-08-26 16:49:39 +0200 |
commit | c2807cad6ee36339d1af3e103946d48a3f8cc3bf (patch) | |
tree | 771d7967e89a4f25aaf78e3ab8e60a8fb61f758a /doc/fuspel.sty | |
parent | Fix bug with names starting with a c (diff) |
Add examples to doc
Diffstat (limited to 'doc/fuspel.sty')
-rw-r--r-- | doc/fuspel.sty | 33 |
1 files changed, 33 insertions, 0 deletions
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$} |