http://www.acecoolco.com/dev/new_si...lor-and-add-some-text/page_1/tutorial_15.html I just implemented the design into the php BBcode so that it displays line numbers, and a background.. Let me know what you think This was done using CSS line-height, with a set background to ensure it stays in the line .. looks 1:1 in IE and firefox. Josh
Pretty cool, nice new site. We used to be affiliates until you took your link down, or weren't you in a car crash or something..? Anyway I'm not too keen on using those line numbers. For one, you're not using a monospace font. You can alternatively float a div next door to the code and then dynamically generate the line numbers depending on how many lines there are. Having it floating in a seperate element means people can copy and paste the code without the line numbers.
Thats where the beauty of mine comes in I made the table in such a way that the line numbers can NOT be copied while selecting in the other box... 3 tables in place.. table 1 table 2 line numbers end table 2 table 3 code end table 3 and 1 Also, the line numbers is a background image Which font would you recommend? I made a php_gutter.php file to automatically create it, so I would only need to change the font name