Custom caption prefix

latex, listings

Solution

If you are using minted (I am, and my source looks like yours), you may want to try

\renewcommand{\listingscaption}{Some fancy listing}

Problem

When using: ``` \begin{listing} ... \caption{foo} \end{listing} ``` The caption will say: `Listing x: foo`. How can I replace the word `Listing` with something else?

Original source