Hi there,
I wonder if anyone can help me please.
I am trying to get some code to display properly on a web page (ie with proper indentation etc).
If I give the code segment a CSS class with a monospaced font like courier, then it looks like code, but the indentation displays wrongly (especially if I have two closing curly brackets. I can't seem to get the second last one to indent four spaces.
I've also tried using pre tags which do the job, but for some reason, it's leaving a gap under each pre block so the page looks funny. I've tried styling the pre tags using CSS and set their margin and padding to zero, but it doesn't seem to have any effect.
Also, does anybody know what the widget is that the
Java Ranch uses to display it's code. I think I've seen it on a few websites now and it looks really good.
Cheers
Joe