Adding a “boxedminted” environment?
A question in TeX.StackExchange made me wonder if you deem interesting to add a boxedminted environment that uses BVerbatim instead of Verbatim and would be useful to move around a minted block.
\newenvironment{boxedminted}[2][]
{\VerbatimEnvironment
\RecustomVerbatimEnvironment{Verbatim}{BVerbatim}{}%
\begin{minted}[#1]{#2}}
{\end{minted}}
I did a few experiments and it seems to work well, but you surely have material for more extensive testing.
There is another question on Tex.SE where the same code has been suggested in order to center a listing on a page. A user found out that linenumbers did not work. I also noticed that autogobble did not work and that the offical minted docs say not to mess with BVerbatim.
Do linenumbers and autogobble work with your boxedminted?
see also #133