When using examples from an existing code base, it's often good to have a code snippet from the code base directly in the documentation. Then, to back that up, you also want to have a link to the source file so that people can check the rest of the project.
To make that simple and intuitive, it would be great to be able to use the file name above the code block as a link.