[pmwiki-users] Mark 'Deleted lines' with a different color

Anno anno at shroomery.org
Mon Feb 27 09:09:01 CST 2006


You can tweak it even more, by adding additional classes
for change and change to
   .diffchg { border-left:5px blue solid; padding-left:5px; }
   .diffchgto { border-left:5px green  solid; padding-left:5px; }
by adding this to your config.php file:


SDV($HTMLStylesFmt['diff'], "
   .diffbox { width:570px; border-left:1px #999999 solid; 
margin-top:1.33em; }
   .diffauthor { font-weight:bold; }
   .diffchangesum { font-weight:bold; }
   .difftime { font-family:verdana,sans-serif; font-size:66%;
     background-color:#dddddd; }
   .difftype { clear:both; font-family:verdana,sans-serif;
     font-size:66%; font-weight:bold; }
   .diffadd { border-left:5px #99ff99 solid; padding-left:5px; }
   .diffdel { border-left:5px red solid; padding-left:5px; }
   .diffchg { border-left:5px blue solid; padding-left:5px; }
   .diffchgto { border-left:5px green  solid; padding-left:5px; }
   .diffrestore { clear:both; font-family:verdana,sans-serif;
     font-size:66%; margin:1.5em 0px; }
   .diffmarkup { font-family:monospace; } ");


SDV($DiffDelFmt['a'],"
         <div class='difftype'>\$[Deleted line \$DiffLines:]</div>
         <div class='diffdel'>");
SDV($DiffDelFmt['c'],"
         <div class='difftype'>\$[Changed line \$DiffLines from:]</div>
         <div class='diffchg'>");

SDV($DiffAddFmt['c'],"</div>
         <div class='difftype'>$[to:]</div>
         <div class='diffchgto'>");





More information about the pmwiki-users mailing list