Tags:
create new tag
view all tags

Question

Is it possible to display the revision history of a topic in the form of strikeouts (for deletions) and underlines (for additions)?

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux
Web server: Apache 1.3.33
Perl version: 5.8.4
Client OS:  
Web Browser:  
Categories: Topic revisions

-- JohnNew - 23 May 2005

Answer

yes smile - the 2004 release uses css tags, which you can then define the presentation for. - just goto an rdiff page, and view the source smile (if you need more pointers, I / someone else can dig them up for you smile )

-- SvenDowideit - 23 May 2005

See for the list of CSS classes PatternSkinCss. Change attachment style.css in your TWiki.PatternSkin topic to reflect your desired formatting.

For instance:

<style>
.twikiDiffPage .twikiDiffAddedText {
    background-color:transparent;
    text-decoration:underline;
}
</style>

Click on the Total page history link at the bottom to see this change.

-- ArthurClemens - 23 May 2005

OK, I don't think this is exactly what I am looking for (my fault for not being more specific), so I will show an example.

If I have a topic with the original text being:

This is the original text of the topic.

And I revise it to this:

This is the revised text of the topic.

Then when I view the diff between the two, I would like to see the following:

This is the original revised text of the topic.

without any headers (like Added, Changed, green or red columns, etc.), just as you might see if you turned on the "Show Changes" option in an OpenOffice document.

Would I have to completely rewrite the ..lib/TWiki/UI/RDiff.pm in order to accomplish this, or is there a simpler way? Is this even possible? Is there possibly someone who has already done this?

-- JohnNew - 24 May 2005

No code yet afaik, but some discussions: DiffsHardToRecognize, WordDiff.

-- PeterThoeny - 30 May 2005

Thanks for the help and the pointers.

-- JohnNew - 02 Jun 2005

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2005-06-02 - JohnNew
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.