I have multiple different commands setup using \inputminted with different options but all are using the same language. Previously, i could feed all commands with a TeX primitive like so:
\def \usedlanguage{c}
\newcommand{\macro1}[1]{\inputminted[\breaklines,\fontsize\footnotesize]{\usedlanguage}{#1}
\newcommand{\macro2}[1]{\inputminted[\breaklines]{\usedlanguage}{#1}
etc.
Since i updated my packages recently this leaves me with the error
Error: no lexer for alias '\usedlanguage ' found
Has anyone encountered this or a similar problem and has come up with a solution? Any help would be appreciated.
\newmintedfile[macrofirst]{\usedlanguage}{breaklines,fontsize=\footnotesize}and then\macrofirst{yourfile.c}would work. – Marijn Jan 10 '23 at 15:46