There's very little code on the internet that uses British English. I'm Australian, and even when I write software that will only be used by other Australians, I still use American English so I don't have to think about it.
Spelling in documentation is much less important.
Do you have any examples to share? All the languages I've used have been american english, which is a sensible decision.