Register a source code and a document.