Sure. Still using the
and Microchip MPLAB XC8 C Compiler (Free Mode) V1.10
as above, try:
#pragma config " FOSC=INTRCIO MCLRE=OFF WDTE=OFF PWRTE=ON BOREN=ON CP=OFF " CPD=OFF
#pragma config " FOSC=INTRCIO " " MCLRE=OFF " " WDTE=OFF " " PWRTE=ON " " BOREN=ON " " CP=OFF " " CPD=OFF
The compiler likes them, but I certainly don't! (Due to the failure to finish the job of letting me use string literals . . . )
#pragma config "FOSC=INTRCIO MCLRE=OFF WDTE=OFF PWRTE=ON BOREN=ON CP=OFF " CPD=OFF
does not work, nor does any other variant that does not have whitespace between all " and the nearest config option: Error  <filename elided>; 26.1 unknown configuration setting/register ("FOSC = INTRCIO)
used (908) exit status = 1
#pragma config " FOSC=INTRCIO MCLRE=OFF WDTE=OFF PWRTE=ON BOREN=ON CP=OFF CPD=OFF "
does not work, nor any other variant that does not have at least one CONFIG parameter=setting pair outside the quotes at the end of the line. Error  <filename elided>; 26.1 syntax error in configuration argument (908) exit status = 1
A further issue is that commas seem to be treated as whitespace. Sprinkle them wherever you like within a #pragma config and they have no effect whatsoever unless you break a word or needed whitespace to separate " and a word.
Finally, for the cases the compiler accepted, I did check that all CONFIG options were effective and the result was the same as the properly formed:
#pragma config FOSC=INTRCIO, MCLRE=OFF, WDTE=OFF, PWRTE=ON, BOREN=ON, CP=OFF, CPD=OFF
(without any conflicting #defines).
All tests were in MPLAB
version 8.83.00.00 Certified
running on Windows XP
version 5.1.2600.2 Service Pack 3
post edited by Ian.M - 2012/09/18 15:17:55