A method includes generating source code corresponding to a block diagram model and generating hypertext links associating elements of the generated source code with elements of the block diagram model.