You need world edit to use these commands (world edit is a bukkit plugin/i think its also available for singleplayer)
The command is //replace 3 57 and it will replace dirt with diamond blocks. (Before you use the command you have to select the area with a wooden axe (lmb/rmb))
6:40 - //replace