I can't speak as to code worthiness, but for eons people have been painting entrance cables to their houses without concern. NOW, the meter base and meter don't belong to you, so I wouldn't paint them. They belong to the power company and they may get red cheeks if you painted them.