Some lanaguages, like Perl, support printing preformatted code:
print <<EOL
a line
another line
and another.
EOL
Some languages don't.
For the ones that don't, I'd like to be able to write my text and then convert it to a bunch of printfs:
printf "a line\n"; printf "another line\n"; printf "and another\n";
What's a good way to do this conversion? (preferably in emacs)