[IMP] doc-ws: prepend setup code when copying from a snippet