XC8 is actually repackaged Hitech C compiler with support for PIC18 devices.
pretty much any of the tutorials shown on that wonderful site will workout-of-the-box for XC8
just include the file xc.h in your main.c
As a matter of fact, i have just migrated from hitech to XC8 on linux and it took me less than a couple of hours to familiarize myself with XC8
the manual is a great help.
FWIW
the code for what you intend to do is
TRISB=0b00000000;
while(1)
{
PORTB=0b00000001;
__delay_ms(250);
PORTB=0b00000000
__delay_ms(250);
}
Look under the "docs" folder in XC8 installation directory.
there are two html files by name "pic_chipinfo.hml" and "pic18_chipinfo.html"
they contain a list of the devices supported and if you click on a device link, it gives a detailed explanation on how to use the #pragma directive for the config bits.
:-)