in reply to How to comment out lines in a text?

sed -e '/^MYTAG/,/);/s/^/#/' < input.txt > output.txt