\documentclass[10pt]{article}

\usepackage{algorithm}
\usepackage{listings}
\usepackage[usenames,dvipsnames]{xcolor}

\lstset{
    showspaces=false,
    numbers=left,
    numberstyle=\tiny\color{gray},
    xleftmargin=2em,
    keywordstyle=\color{ForestGreen},
    commentstyle=\color{blue},
    stringstyle=\color{BrickRed},
    breaklines=true
}

\begin{document}

\title{Bluh}
\maketitle

\begin{algorithm}
\caption{Random snippet from MinPQ}
\texttt{\lstinputlisting[language=Ada]{rand_minpq.adb}}
\end{algorithm}

\end{document}
