The verbatim package is another standard / package, like syntonly. In addition to some minor enhancements for the verbatim environment, it provides a comment environment that skips everything between ||. A command verbatiminput is also provided for typesetting a whole file in verbatim style.