No tool matches your search.
Pick an open source license and get its LICENSE file and source file header
Anyone may reuse your code, even in closed software, as long as they keep your copyright notice.
Anyone may reuse your code, but must share the source of their changes, under the same license.
Anyone may do anything with your code, without even crediting you.