答案1
也许是这样的?
\documentclass{article}
\usepackage[most]{tcolorbox}
\begin{document}
\begin{tcblisting}{listing only, listing options={language=tex},enhanced jigsaw,
borderline={0mm}{1pt}{dashed,blue},sharp corners,,size=tight,fontupper={\tiny},boxrule=0pt,colback=white
}
\usepackage{color}
\end{tcblisting}
\end{document}