![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am upgrading a web site that was authored in some kind of program called Wizard or something like that. So, the code contains all sorts of blank divs, and other assorted crap that I don't want in my new, pretty, code. I'm hand coding using TextPad. There are probably 50 pages that I need to convert to the new format. The pages are very text-intensive, and the text is in many short paragraphs. My dilemma is this - if I copy and paste the *code* directly, then I have to search and replace which would probably kill me! |
#3
| |||
| |||
|
|
I am upgrading a web site that was authored in some kind of program called Wizard or something like that. So, the code contains all sorts of blank divs, and other assorted crap that I don't want in my new, pretty, code. I'm hand coding using TextPad. |
#4
| |||
| |||
|
|
Why would search and replace 'kill' you? For example: if 90% of all the divs are empty, take out all the divs, and code the necessary divs by hand... or am I missing something? |
#5
| |||
| |||
|
|
Search and replace would kill me because sometimes there are hard returns between the codes, sometimes tabs, sometimes a blank <b> inserted between, and on and on, and to figure out all of the permutations that s&r would require... dead for sure! So, any other ideas of how to take care of my problem? |
#6
| |||
| |||
|
|
Sound's like it's time to learn about regular expressions. It'll take you a while the first few times, but at the end you'll have acquired a new skill that you can use again. |
|
Sounds like the original creator just did a Word document 'save as HTML' - just about the most criminal act that can be perpetrated on the web. |
|
If I was you I'd bite the bullet and just copy the text and reformat it. At least you'd then know that everything in the HTML files was your and yours alone. |
![]() |
| Thread Tools | |
| Display Modes | |
| |