Re: Re: new CHM sample [7] is out
| From: | Gabor Hojtsy | Date: | Thu, 15 Aug 2002 19:30:05 +0000 |
| Subject: | Re: Re: new CHM sample [7] is out | ||
| References: | 1 2 3 | Groups: | php.doc.chm |
| Request: | Send a blank email to php-doc-chm+get-326@lists.php.net to get a copy of this message | ||
> > Most everything works fine, but the Samples section of eac hentry
> > appears to have the bottom of each line trimmed off. For example, I'm
> > looking at the entry for htmlentities() ... At first blush, looks
> > like a CSS problem. This happens with both of the included skins. I'm
> > using IE6 on Win2k. Anyone else?
> >
> > Also, the context menu pops up in an unpredictable location.
>
> Same here, IE6 on Windows XP.
OK, can someone with CSS knowledge experiment with this. I have no XP
and/or IE6 box to experiment here.
One can set a custom skin using the preferences app (just browse to
skins/greenlinks/skins.js and select it). This skin is the same as
the inline Low skin, but with green links.
The structure of an example looks like this:
<div class="informalexample"><div align="right"
class="codelink"><a
href="javascript:void(0);" onclick="copyExample('1')">copy to
clipboard</a></div> <p><code id="example_1"><span
class="ck">if
(</span><span class="cd">$a </span><span
class="ck">> </span><span
class="cd">$b</span><span class="ck">) {<br> }
</span></code></div>
So the example is in a div with informalexample or example class,
then a div contains the new copy link, then a <code> contains the
code, with spans for highlighting. Every newline is done by <br>s.
The css rules for these are:
code, .codelink
font-weight: normal;
width: 100%;
margin-right: 10px;
margin-left: 10px;
}
code {
padding: 5px 5px 5px 20px;
background-color: #dcdcdc;
font-family: "Courier New", Courier, mono;
}
.codelink {
font-size: 10px;
}
.cs { color: #CC0000 } /* string */
.cc { color: #b8860b } /* comment */
.ck { color: #006600 } /* keyword */
.cd { color: #0000CC } /* default */
This may not be 100% the same in the greenlinks CSS, but those
size differences should not affect display, so I don't think there
are any problems in the CSS. Can someone please try some tweaks
out using IE6 modifying the greenlinks skin. After you modify the skin
you can press F5 to see the results in the app (if greenlinks is
the active skin).
Thanks for the help,
Goba