Answers.Body: <p>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.</p>
  
  <p>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.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-11T19:19:05.337Z
Answers.Text: Thank you very much for such complete answer. Pity Kindle is so limited...
Answers.UserDisplayName: greenoldman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-11T18:55:13.183Z
Answers.LastActivityDate: 2016-04-11T18:55:13.183Z
Answers.UserDisplayName: Anthon
Body: <p>I didn't have any Kindle in hand, so I might be completely wrong -- this is what I would like to do. Copy entire directory with C#, Swift, Python (and so on) files -- source code files -- so their content usually look like this:</p>
  
  <pre><code>parents, babies = (1, 1)
  while babies &lt; 100:
      print 'This generation has {0} babies'.format(babies)
      parents, babies = (babies, parents + babies)
  </code></pre>
  
  <p>I would like to click of any of such files and see the content of the file (see above).</p>
  
  <p>Does Kindle support this? Does Kindle viewer support syntax highlighting for source code files?</p>
  
Tags: <kindle><source>
Title: What is support of source code files in Kindle?
UserDisplayName: greenoldman
ThreadText: # What is support of source code files in Kindle?
  
  (Asked by: username_0 on 2016-04-11)
  
  I didn't have any Kindle in hand, so I might be completely wrong -- this is what I would like to do. Copy entire directory with C#, Swift, Python (and so on) files -- source code files -- so their content usually look like this:
  parents, babies = (1, 1)
  while babies < 100:
      print 'This generation has {0} babies'.format(babies)
      parents, babies = (babies, parents + babies)
  
  I would like to click of any of such files and see the content of the file (see above).
  Does Kindle support this? Does Kindle viewer support syntax highlighting for source code files?
  
  **Tags:** kindle, source
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-04-11. Score: 4 | Accepted 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.
  
  > **Comments:**
  > **username_0**: Thank you very much for such complete answer. Pity Kindle is so limited...  
  
  ---
  
  