Programming other ATMegas using Arduino language

Hello

I was wondering if I can somehow program other ATMegas like the atmega32 or atmega168 for example, using the Arduino IDE and language and programming either via a usbtiny or an arduino set up in ISP mode. Is this possible at all and if so, how can I do it? I have seen videos of how to do it with ATtiny chips but I want larger chips than that.

Thanks in advance

I believe you want to burn the bootloader onto another chip? This link might help.

war_spigot:
I believe you want to burn the bootloader onto another chip? This link might help.

First of all, thanks for a fast response.

Well, yes and no. I know how to use the arduino as an ISP, what I want to do is basically to replace for example AVR Studio with the Arduino IDE, because the Arduino language is way easier. So basically I want to do this:
this

, but I want to be able to program bigger chips than ATtinys.

Well you do what he showed but find the files for the chip in question. I think the standard IDE does the 168. I would search for files for the 32. Someone here may know exactly where they are.

Arduino language

It's the C/C++ nothing else.

Here's is a list of possible Arduino IDE compatible CHIP's >> AVR boards for Arduino

Thank you for your help everybody. I think this is what i am looking for: Arduino IDE for programming Atmega Microcontrollers | Achu's TechBlog