[cfe-dev] patch for auto show/hide macro expansion in CSS
Cédric Venet
cedric.venet at laposte.net
Thu Apr 17 11:17:40 PDT 2008
Hi,
Instead of using javascript, it can be done in css like this. Tested in IE7
et FF3b4 (I don't have IE6, for it, it would probably need to transform the
<span class="macro"> into a <a class="macro">). It depend on which browser
you want to support...
I put an XHTML doctype in order to get the browser to be in standard mode
(instead of quirk mode).
Regards,
Cédric
Ps: Does the color match those of Xcode? Because I don't really care for
them :|
Ps2: VS highlight code 'discarded' by the preprocessor in a special color.
Like this:
#if 0
something in a special color
#endif
It is useful when the condition are more complex. Could it be done?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hover-expansion-170408.patch
Type: application/octet-stream
Size: 1293 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080417/f555a864/attachment.obj>
More information about the cfe-dev
mailing list