Here’s a short video tutorial for getting, prepping, and compiling Blender’s source. As for editing, any text editor will do, but if you grab Visual Studio Community 2017, it’s easier to navigate the code.
Most of Blender is written in C and C++, but there’s also a fair chunk of Python in there.