Solved

Split html codes

Posted on 2008-10-24
9
419 Views
Last Modified: 2012-05-05
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.
0
Comment
Question by:openaccount1
  • 6
  • 2
9 Comments
 
LVL 5

Expert Comment

by:Devario Johnson
ID: 22798676
what is your CMS tool?

we may just have to apply a <br/> in the script to allow for the loop to go vertially rather than horizontally
0
 

Author Comment

by:openaccount1
ID: 22910061
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.
0
 

Author Comment

by:openaccount1
ID: 23010690
Just a follow up. Anyone who knows how to automatically split html codes logically?
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:openaccount1
ID: 23156299
Following up this question again
0
 

Author Comment

by:openaccount1
ID: 23370402
Hello, any other answer?
0
 

Author Comment

by:openaccount1
ID: 23716994
Following up the question, anyone who knows a way to do this?
0
 

Author Comment

by:openaccount1
ID: 23987690
follow up.
0
 
LVL 1

Accepted Solution

by:
ShaileshShinde earned 250 total points
ID: 23987863
You can have a look at this if you want to use a script....

http://www.htmlcodetutorial.com/help/viewtopic.php?start=0&t=5628
0
 
LVL 5

Assisted Solution

by:Devario Johnson
Devario Johnson earned 250 total points
ID: 23998111
have you tried using

examdiff ?

It;s free

http://www.prestosoft.com/edp_examdiff.asp
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This video will demonstrate how to find the puppet warp tool from the edit menu and where to put the points to edit.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question