openaccount1
asked on
Split html codes
Hi,
We have this CMS tool where we are able to compare files or DIff them but the built in Diff tool does not wrap up the html codes in the screen making us scroll the window horizontally. I know there are alot of diff tools that can wrap text in the diff window but we would like our HTML pages to work out wth the current setup.
What we would like is a program that can cut the html into sections and stack them below each other.
e.g.
<body>
this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample.
</body>
we would like something that can transfor this into.
<body>
this is a sample. this is a sample. this is a sample. this is a sample. this is a sample.
this is a sample. this is a sample. this is a sample. this is a sample. this is a sample.
this is a sample. this is a sample. this is a sample. this is a sample. this is a sample.
this is a sample. this is a sample. this is a sample. this is a sample. this is a sample.
this is a sample. this is a sample. this is a sample. this is a sample. this is a sample.
</body>
but ofcouse we do not wait the words to be cut off since in an html code a next line will be transformed into a space. we do not want something to happen like this one where there are spaces in the word itself.
th is is a sample. this is a s ample.
We want a program or script that can do a batch change on html files where it splits html codes to sections at th same time splitting them logically without splitting a sentence.
e.g.
<body>
this is a sample. this is a sample. this is a sample. this is a sample. this is another sample.
this is a sample. this is a sample. this is a sample. this is a sample. this is a sample.
this is a sample. this is a sample. this is a sample. this is a sample. this is a few more sample.
this is a sample. this is a sample. this is a sample. this is a my sample. this is a sample.
this is a sample. this is a sample. this is a sample. this is a sample. this is a sample.
</body>
Hope this makes sense.
We have this CMS tool where we are able to compare files or DIff them but the built in Diff tool does not wrap up the html codes in the screen making us scroll the window horizontally. I know there are alot of diff tools that can wrap text in the diff window but we would like our HTML pages to work out wth the current setup.
What we would like is a program that can cut the html into sections and stack them below each other.
e.g.
<body>
this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample. this is a sample.
</body>
we would like something that can transfor this into.
<body>
this is a sample. this is a sample. this is a sample. this is a sample. this is a sample.
this is a sample. this is a sample. this is a sample. this is a sample. this is a sample.
this is a sample. this is a sample. this is a sample. this is a sample. this is a sample.
this is a sample. this is a sample. this is a sample. this is a sample. this is a sample.
this is a sample. this is a sample. this is a sample. this is a sample. this is a sample.
</body>
but ofcouse we do not wait the words to be cut off since in an html code a next line will be transformed into a space. we do not want something to happen like this one where there are spaces in the word itself.
th is is a sample. this is a s ample.
We want a program or script that can do a batch change on html files where it splits html codes to sections at th same time splitting them logically without splitting a sentence.
e.g.
<body>
this is a sample. this is a sample. this is a sample. this is a sample. this is another sample.
this is a sample. this is a sample. this is a sample. this is a sample. this is a sample.
this is a sample. this is a sample. this is a sample. this is a sample. this is a few more sample.
this is a sample. this is a sample. this is a sample. this is a my sample. this is a sample.
this is a sample. this is a sample. this is a sample. this is a sample. this is a sample.
</body>
Hope this makes sense.
ASKER
The diff tool uised by the CMS tool is called Guiffy. CMS is not open source that is why I am asking if there is a program that can do this or a script that can do this.
ASKER
Just a follow up. Anyone who knows how to automatically split html codes logically?
ASKER
Following up this question again
ASKER
Hello, any other answer?
ASKER
Following up the question, anyone who knows a way to do this?
ASKER
follow up.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
we may just have to apply a <br/> in the script to allow for the loop to go vertially rather than horizontally