Compile formatted documents with code extracted from project files