This page may be out of date. Submit any pending changes before refreshing this page.
Hide this message.
Quora uses cookies to improve your experience. Read more
Robert Walker
Best way to view it probably is with an Integrated development environment

If you are on Windows, and it's a Windows program you can use the Microsoft Visual Studio Express

It will do syntax colouring - and then also you can run the program and step through the code and see what happens to all the variables.

Just to be clear about things - most programs don't come with source code publicly available - they get compiled into machine code - and may be encrypted also to protect from hackers. The machine code is hard to read anyway!

Needs to be an open source project or one you have access to the code for.

And - if it is a complex project chances are won't be easy to understand what it does. Easiest programs to understand are probably the ones you get in programming books for beginners most of them come with example programs to try out.

It's different if you are working with javascript - the code embedded in webpages. I don't use that much so not able to give good advice. You can see the code just by using view source - but a lot of the code probably isn't in the page but included into it from elsewhere depending on the site, anyway others can probably answer about that better.

About the Author

Robert Walker

Robert Walker

Writer of articles on Mars and Space issues - Software Developer of Tune Smithy, Bounce Metronome etc.
Studied at Wolfson College, Oxford
Lives in Isle of Mull
4.8m answer views110.4k this month
Top Writer2017, 2016, and 2015
Published WriterHuffPost, Slate, and 4 more