Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
htmldiff between 2 files
Janus Woze
1/24/2008 10:14:00 AM
Dear all,
I'm looking a existing ruby script that will allow me to create a html
diff between 2 existing text files.
I already found similar scripts but what I need is to have 2 colons: on
the left for the first file, on the right for the second file.
Ideally you will have colors (green & red) to see the differences:
* added and removed lines
* change inside a line (word remove, spelling mistake,..)
The trac tool or the wikipedia historic interface functions are exactly
what I need.
Does somebody already seen a script like that ?
My goal is to see differences between two configuration files from Cisco
devices via a ruby on rails application.
Thanks in advance for your replies,
Best regards
--
Posted via
http://www.ruby-...
.
2 Answers
Mark Mcbride
11/5/2008 12:12:00 AM
0
Janus,
I wrote this script. It should do what you're looking for:
http://markmcb.com/2008/11/04/ruby-on-rails-diff-text-to-html-in...
--
Posted via
http://www.ruby-...
.
Janus Woze
1/31/2009 10:45:00 AM
0
Thank you a lot Mark !
It's very useful !
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
htmldiff between 2 files
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password