1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Template compare tool

Discussion in 'XenForo Questions and Support' started by Veer, Jan 23, 2011.

  1. Veer

    Veer Well-Known Member

    Hello

    I've modified templates and after upgrade on RC1 I don't want to revert my modified templates. I'm looking for a template compare tool or software, somebody help me please.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Notepad++ can do that.

    http://notepad-plus-plus.org/

    Really though you should be reverting and reapplying your edits to ensure your template version is up to date.
    Otherwise every time you upgrade it will be marked as outdated.
     
    CFodder and Veer like this.
  3. steven s

    steven s Well-Known Member

    And for Mac I've been using BBEdit.
     
  4. Veer

    Veer Well-Known Member

    Thanks both of you.

    Now I can manage template reverts.
     
  5. steven s

    steven s Well-Known Member

    To help me with edits I comment each template.

    Code:
    <xen:comment>leave myself a short note here</xen:comment>
     
    Veer and Lu Kas like this.
  6. Brogan

    Brogan XenForo Moderator Staff Member

    I log all of my template edits in a file so I can revert and easily reapply them afterwards.

    For css edits I put them all in EXTRA.css, which removes most of the problems related to reverting/reapplying after upgrades.
     
    Veer likes this.
  7. steven s

    steven s Well-Known Member

    I sometimes do that including a reference where the addon/mod can be found.
    It's still quicker for me to do a compare.
    1. Copy edited template.
    2. Revert
    3. Copy reverted template
    4, Compare
    5. Paste edited template.

    I do hope we get away from mods needing template edits once stable.
    That is what drove me away from phpBB2.

    Whatever you are used to and what works.

    Add: It may be a good idea to log those edits in a separate template so you have it right there.
    I am always forgetting where I put things. :)
     
    Veer likes this.
  8. CFodder

    CFodder Well-Known Member

    Is there a way you can compare 2 templates in this and get it to highlight the differences?
     
  9. Digital Doctor

    Digital Doctor Well-Known Member

    It wasn't the crazy bad security ?
     
  10. Russ

    Russ Well-Known Member

    You can, have the 2 files open, then under "Plugins" -> Compare -> Compare

    Highlights the changes in some color code.... i think pink :)
     
    CFodder likes this.
  11. CFodder

    CFodder Well-Known Member

    Thanks for that Russ :)
     

Share This Page