[thelist] modified <pre></pre> blocks
.jeff
jeff at members.evolt.org
Wed Jul 17 11:40:01 CDT 2002
jonathan,
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Jonathan_A_McPherson at rl.gov
>
> > http://members.evolt.org/jeff/code/modified_pre_blocks.cfm
>
> Looks sharp in Mozilla 1.0 on Windows 2000. I like the
> auto-scroll; it's a nice solution to the
> long-lines-of-code dilemma.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
yeah, that portion is basically the same as adrian's.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> The line numbers don't show unless I'm in IE, though.
> Are those intended to be IE-only?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
well, when i sat down to write this my goal was for it to work in nn6/moz
too. so i started building it. i immediately ran in to issues with it
though. nn6/moz doesn't support the innerText property or the replaceNode()
method, but of which are necessary for this to work properly. so, after
some searching i found a couple of libraries i could use to give nn6/moz
this functionality. i was uneasy about increasing the code footprint for
this, but went ahead anyway. i got it all working really nicely. then i
did the final test which was to copy-n-paste the contents (like would be
done often with code samples) and was shocked to see that nn6/moz includes
the line numbers with the text. since that made the code sample completely
unusable i reverted back to win/ie5+ for now since it doesn't include the
line numbers.
now to solve the problem in mac/ie. ugh.
.jeff
http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/
More information about the thelist
mailing list