This is going to be confusing. Just append a hosts line for endofcodes in the end. Maybe you can also assume that the reader knows how to work with vhosts.