title_body: What is support of source code files in Kindle?
upvoted_answer: No you cannot directly upload the files and use them. You would have to convert the file (with a syntax highlighter) to a format your kindle supports (EPUB,AZW3) and then upload those files.
  
  I would not use PDF, I still have to come across a converter that correctly does whitespace (significant in e.g. Python) correctly. Although you might be indifferent wrt that.