<code> in nice blocks

fuzz2400 - September 25, 2007 - 20:14

Hi. I am trying to make my own version of the Marvin theme by writing a style.css. One thing that troubles me is how I make a nice block around my code, just like here at drupal.org:

This is how I want the code to look like.
Line 2

I have looked on the html of drupal.org - and here there is a codeblock-tag which I haven't on my site. Is this acchieved by using a module?

How can I do this most easily?

I think this one does what

ronan - September 25, 2007 - 20:20

I think this one does what you want: http://drupal.org/project/codefilter
Otherwise look through the Filters category in modules
------------------------------------
Ronan - Gorton Studios - http://www.gortonstudios.com/

Doesn't do it

fuzz2400 - September 25, 2007 - 21:01

Thanks for you guess. I have installed an enabled the module, but it doesn't help.

I greped for codeblock in the codefilter module and it seemed to be able to insert 'codeblock's. But it was only for php. So it can't be codefilter that do it on drupal.org.

I browsed through all the filter modules, but I can't find any that seems to do this.

Well someone more

ronan - September 25, 2007 - 21:25

Well someone more knowledgeable should be able to speak to what is used on drupal.org, but it sounds like all you want to do is style the code tag with css. Something like

code {
  display: block;
  border: 1px solid black;
}

------------------------------------
Ronan - Gorton Studios - http://www.gortonstudios.com/

That was it.

fuzz2400 - September 25, 2007 - 22:00

Thanks a lot. That was just what I needed. I am not the best friend with CSS :)

geshi filter

okaym - October 2, 2007 - 12:24

you may also consider using geshi filter module.
http://drupal.org/project/geshifilter

 
 

Drupal is a registered trademark of Dries Buytaert.