what about your hardware setting? what speed of crystal do you use? If it's higher than 4MHZ, let's say 20MHZ, you must include this line at the top of your code

DEFINE OSC 20

AND you must set your programmer to HS clock speed.

The whole code will probably looks something like that
Code:
DEFINE OSC 20

TRISB.2=0 'define PORTB.2 as output

start:
     Toggle PORTB.2
     PAUSE 1000
     goto start