Tool for inserting code samples into a page from external sources