don't split verbatim by tables

I have quite long verbatim, which I don't want to be split by table, which is present in source document before verbatim. I have my table wrapped by \begin{table}[h].

Any suggestions?

-

Try changing the placement specifier: instead of simply [h] use [!hb] or [!ht]. If the problem persists, please add to your question a minimal working example illustrating the problem.

-

Do not put the verbatim code into a table environment. Use

\usepackage{caption}
...
\begin{verbatim}
...
\end{verbatim}
\captionof{table}{ ... caption ...}

-