#!/usr/local/bin/ruby def tagify(element, content) "<"+element+">"+content+"" end while sentence=gets printf("%s\n", tagify("pre", sentence.chomp!)) end