Is there any way to make flexible brackets around some text?
So I tried to use fancyvrb and got something like this:

\documentclass{article}
\usepackage{fancyvrb}
\usepackage{color}
\definecolor{darkblue}{rgb}{0.1,0.3,0.5}
\DefineVerbatimEnvironment%
{MyVerbatim}{Verbatim}
{gobble=0,label=\hspace{.85\textwidth},labelposition=all,
frame=single,framerule=3pt,framesep=5mm,rulecolor=\color{darkblue}}
\begin{document}
\begin{minipage}{6cm}
\begin{MyVerbatim}
some text some text some
some text some text some
some text some text some
\end{MyVerbatim}
\end{minipage}
\hfill
\end{document}
However, I am unhapy with it, because of the misuse of fancvrb.
I want to be able to define the thickness of the rule, the
size of the corners or the spaces. A good candidate would be
a package similar to dashedbox.
Any hint would be appreciated.

mdframedpackage. – egreg Dec 03 '13 at 23:35