0

I've tried to make table with minted listing inside using minipage, but my listing takes up more than one page and it turns out that part of the text is cut off, is it possible to make minipage for several pages or is there some other environment to make it work properly?

\begin{center}
        \begin{longtable}{|l|}
        \hline
             \textbf{URL} \\ \hline 
             /api/test \\ \hline
             \textbf{Method} \\ \hline
             GET \\ \hline
             \textbf{Headers} \\ \hline 
             - \\ \hline
             \textbf{Params} \\ \hline
             \textit{limit} - items count \\
             \textit{offset} - start index \\ \hline
             \textbf{Response} \\ \hline
             \begin{minipage}{\textwidth}
             \inputminted[fontsize=\footnotesize,breaklines]{js}{test.json}
             \end{minipage}
        \end{longtable}
    \end{center}
4

0

You must log in to answer this question.

Browse other questions tagged .