Where to find source code
Right click your website in an area that has no text or images. You will see the View Page Source option. Click View Page Source and the code of your site will load. Start Chrome and visit your website. Right click on your website where there is no text or images.
Select View Source from the menu. If you cannot right click, click the icon at the top right. See image to the right When hovering the text will say Customize and control Chrome. Open Internet Explorer and go to your site. Right click your website where there is no content and click View Page Source. The code will pop up in a box. Launch Opera and go to your website.
Right click in a section of your website that does not have any content. Learn more. Where do you go to read good examples of source code? Asked 10 years, 9 months ago. Active 8 years, 4 months ago. Viewed 36k times. Improve this question. Robert Harvey k 54 54 gold badges silver badges bronze badges. This has been asked on StackOverflow: stackoverflow.
I just look back over my old code. Paul, that is not going to help the OP is it? Obviously they don't have good code already written in the past. Show 1 more comment.
Active Oldest Votes. Improve this answer. You kind-of covered this by recommending 'established' projects, but I've seen awful code in projects we've all heard of.
I don't have a better answer, though. It's actually a hard question, needing an answer tailored to the individual's skill levels, interests, and filtered through a mentor's knowledge. Cris I don't disagree, but I will note that there's a lot to be learned from reading bad code as well. Arguably, reading and following bad code is even tougher than diving into a properly organized project.
And this is before we get into trying to figure out what "good" code is. But for most of us non-geniuses, self-education has limits. Most beginners in all fields need exposure to "the good" to get a feel of what is good.
And "the Internet" is a world-clamour of "I'm good! Add a comment. Uri Uri 4, 16 16 silver badges 23 23 bronze badges. Instead of finding great codes, Look into General Programming Books. Code Complete, Writing solid code, Design Patterns I am sure there are lots of other books around in another question and answer in this site Those books are describing the philosophy what considered as good code. Learn why people trust wikiHow. Download Article Explore this Article methods.
Tips and Warnings. Related Articles. Article Summary. Method 1. Open your web browser. Navigate to a webpage. It should be a page whose source code you wish to view. If you're using a Mac computer with a one-button mouse, you can hold down Control and click instead. If you are on a laptop with a trackpad, you can use two fingers to click the page instead. This will invoke a drop-down menu. Don't right-click a link or a photo when doing this or else the wrong menu will appear.
Click View page source or View Source. Doing so will display your browser's source code in a new window or at the bottom of the current window. Method 2. Click Safari. It's in the top-left side of your Mac's menu bar. Doing so invokes a drop-down menu. Click Preferences. This option is in the middle of the drop-down menu. Click the Advanced tab. It's in the top-right corner of the Preferences window.
Check the "Show Develop menu in menu bar" box. This option is near the bottom of the Preferences window. You should see a Develop menu appear in your Mac's menu bar. Click Develop. This menu is to the left of the Window menu in your Mac's menu bar. Click Show Page Source.
It's near the bottom of the drop-down menu. Clicking this option will prompt Safari to display the webpage's source code. Method 3. Navigate to the page you want to view the wiki source code for. Not Helpful 5 Helpful How do I view the source code of an image on a page without seeing the code for the whole page?
Right-click on the image and select "Inspect" from the available options.
0コメント