Umm... no. You actually write your code in the compiler. The compiler just has a function that will "compile" the code you wrote and link that with the libraries you want to include and any extra files you want into an executable.
Only use a text editor to write your code if a compiler is not available to you. You will appreciate the syntax coloring in most compilers.