Spectrophotometry of the continuum in 18 comets