Style upgrade feature??

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
devenh
Posts: 8
Joined: Fri Jun 16, 2006 7:23 am

Style upgrade feature??

Post by devenh »

I'm evaluating editors and wondered if WeBuilder has a feature to take an existing non-CSS web page and create style sheet for it and upgrade the tags?

If not, what would be the best approach using WeBuilder to upgrade an existing 40+ non-CSS web site to use style sheets?

Thanks,

Deven
ebarstad
Posts: 19
Joined: Sun Mar 05, 2006 9:19 pm

Post by ebarstad »

I'm not sure about layout, but if you're talking about font tags, etc., you can set up HTML Tidy to clean up the HTML for each page. Tools -> HTML Tidy. Works best if there's no server-side code embedded.

Eric
Eric Barstad
Shadow Box: Websites for Non-Profits
HTML Editor Reviews: Reviews and Discussion of (X)HTML Coding Tools
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

could be a big job!

Might want to do it in two passes: pass one for color/font styles and pass two for structure and layout.

Find and Replace is your friend. Make a backup! But you might be able to do something like (just an example)

find:

Code: Select all

<p><font><font>
and replace with

Code: Select all

<p>
and replace

Code: Select all

</font></font></p>
with

Code: Select all

</p>
Looks like my code is getting mangled. Assuming those font tags had colors and sizes and font faces associated with them, you'd replace them all with a single paragraph with a class="yourclassname". then add a style to your stylesheet for yourclassname{with appropriate styles} to replicate the original.

If you know anything about regular expressions, webuilder can really help out here. You might not need that at all. Webuilder has a pretty fancy find and replace dialog - you can even find/replace across files in a given folder.

If you don't have a lot of different font changes happening on the pages, it might be easier to just rebuild the template in CSS and then recreate the pages by inserting the content.

Also as mentioned above, HTML Tidy can really help out here too.

It may be a lot of work but once you cross over, you can't imagine going back! It's good stuff and worth the time for about 349 reasons. ;)

Good luck,
Will
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Currently there is no special style upgrade feature, however HTML Tidy and some replace can help.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply