This example shows how to create citations in footnotes using biblatex. Biblatex automatically formats references and citations, much like BibTeX, but biblatex is more robust and more powerful. You can (almost certainly) use your existing .bib databases with biblatex, it comes with a wide variety of styles built in, and it's much easier to write your own custom styles.
In this example, we use the verbose-ibid style to generate footnotes with automatic “ibid.” abbreviations. For a full list of styles, see the user guide in the biblatex manual.
This example shows how to set the options for automatic syntax highlighting for code in LaTeX with the listings package (which provides the lstlisting environment). The listings package supports many languages, including Java, C, C++, MATLAB/Octave and Python, and you can set the language option globally with \lstset or for each listing, when you have listings in multiple languages.