Solved

Split html codes

Posted on 2008-10-24
9
427 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

730 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