I was reading the documentation for the latex listings package and there are advises in it which look like so:

I had a quick look in the source code for the documentation and it turns out that there is an advise environment:
\begin{advise}
\item Must I do that really?
\advisespace
Yes and no. Some books about programming say this is good.
It seems to be defined inside the package:
% \begin{environment}{advise}
% \begin{macro}{\advisespace}
% The environment uses |\@listi|.
% \begin{macrocode}
\def\advise{\par\list\labeladvise
{\advance\linewidth\@totalleftmargin
\@totalleftmargin\z@
\@listi
\let\small\footnotesize \small\sffamily
\parsep \z@ \@plus\z@ \@minus\z@
\topsep6\p@ \@plus1\p@\@minus2\p@
\def\makelabel##1{\hss\llap{##1}}}}
\let\endadvise\endlist
% \end{macrocode}
% \begin{macrocode}
\def\advisespace{\hbox{}\qquad}
\def\labeladvise{$\to$}
% \end{macrocode}
% \end{macro}
% \end{environment}
However, neither do I understand this code snippet nor do I get this to work (copy and paste does not work, and I do not know what the code in comments means).
Is there maybe an advise-package out there? Is there a way to get this piece of code working outside of the listings package? If so, how?
