listings package provides an elegant way to include an external programming source code as demonstrated below.
Assume that you have an external programming source code named project.cs:
/// Interaction logic for MainWindow.xaml
public partial class MainWindow : Window
If you want to hand your report in, the magazine or university or whatever may have a complete template or style-guide, how the report should look. The best solution then is to ask them about a template or style-guide and start from there.