This question already has an answer here:
In my document (KOMA script article) I use the
listings package for code listings and the
caption package for additional control over captions.
My problem is that some listings flow over multiple pages. When this occurs I would like to have something like "Listing n, continued", or something to that effect at the start of each additional page --- so a contination caption.
I know the captions package supports breaking up captions and doing the "continued" stuff, but am unsure how to get the listings package on board. Any ideas?