The P24 interrupt wizard will generate the code for an interrupt handler for P24 devices.  

Select the interrupt you wish to use, choose context saving mode and check Include Skip-over Code if the routine will be placed before the main code.

You can either copy to the clip board or paste it directly into your code at your current cursor location.