page source and converting

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
randit
Posts: 2
Joined: Thu May 13, 2010 9:54 pm

page source and converting

Post by randit »

Hello:

I am new and using the html pad. I am not a it programmer and have very limited html knowledge.

I want to be able to copy the page source from website pages I have found online that I really like the layout of and be able to take the source code and use the html pad to use that sites layout and replace with my own content (text, images etc.). I am not trying to copy other website pages, but instead of re-inventing the wheel I want a solution to be be able to strip the sites css etc. and just use the layout and then build my own page from there. Can this be done? What are my steps? Any help is greatly appreciated! :)
User avatar
MikeyB
Top Contributor
Posts: 511
Joined: Fri Jun 09, 2006 10:38 am
Location: UK
Contact:

Re: page source and converting

Post by MikeyB »

Hi,

Nothing wrong with looking at other peoples code when you see something you like, I do it all the time!

But the only thing WeBuilder (or htmlPad in your case) can do is replace the view source option in Internet Explorer.
Goto Options -> Preferences -> Eternal Tools -> Intergration and tick the Replace Internet Explorer source viewer option.

Now when your on a page and use View -> Source the html will load up in htmlPad.
It's then down to you to find the bits you want.
davenz

Re: page source and converting

Post by davenz »

The trickiest thing about doing this, even with HTMLPad set to be the source viewer, is that if the page references external files, like a style sheet or javascript file, then you will need to grab those as well and store them locally for the layout and functionality to work on your machine. For example, just grabbing the source code of one of my sites will get you the basic text and links, but much of the layout will be lost because positioning and formatting is done via CSS (and in some cases an external javascript file). To work around this, once you have the source code of the page you like, check in the "head" section and if any external files are linked there, simply put the page's web address in your browser window, including the filename of the file in question, and that will enable you to grab the style sheet and any other files. Say the page is at http://www.yourpage.com and it references a css file called mypage.css; open your default web browser and in the address field type in; http://www.yourpage.com/mypage.css and the css file will open in the browser. You can then either view source to grab the code or simply copy and paste the code directly from the browser window. The save it with the same filename on your machine and the page should render and format correctly.

Hope this makes sense.

Dave
davethompson.co.nz
randit
Posts: 2
Joined: Thu May 13, 2010 9:54 pm

Re: page source and converting

Post by randit »

Thanks for the help. This is going to save me a lot of time!!!
Post Reply