IDEs have taken over pretty much from text editors, though there are still die hard traditionalists who use emacs, vim, ...
When it comes to IDEs, I use CodeLite (on Unbuntu and Windows) and Visual Studio (on Windows.) CodeLite has a very similar feature set to Code::Blocks, but the way it handles projects is a bit closer to Visual Studio, which is what I'm most used to.
But if you want to code using a programmer's editor and the command line, rather than an IDE, then you've got ScITE, Notepad++, GEdit, Programmer's Notepad, ... as well as the heavier duty, trad editors.
There is also Geany, which can be seen to be either a very lightweight IDE or a complicated editor.
PS I run CodeLite on Windows both directly (from a Windows command console or a shortcut) and launching it from a MSYS terminal session. The latter approach is required to get some open source projects to build, unless you're keen/masochistic enough to rework their build systems.
PPS ScITE is the text editor I like at the moment. But this poll puts Notepad++ in the lead.
The 15 Most Popular Text Editors for Developers