Thanks for that suggestion. I've installed the WYSIWYG module with the tinymce editor which looks really good. I have to say I'm not the world's greatest authority on website design as you can probably tell, so I'm not exactly sure how to write the CSS class you describe. Could you give me any more pointers on that please?

Thanks a lot,
Ed.


On 16/01/11 17:20, Todd wrote:
CSS would probably be your best bet. Define a separate class for your code block (something like code.terminal-block) and set the background to black, colour to green, and any other changes you'd like to make. If you're using a WYSIWYG module, you can define that class in settings to get it to appear in the formatting drop down box, as well.

On 16 January 2011 11:38, Edward <ed@linuxcrusaders.org> wrote:
Hi,

I've just started setting up my own website
http://www.linuxcrusaders.org with drupal 7 where I'm trying to post
various linux tips and code as I go along.

I would like the code blocks to appear with a black background and green
foreground (like a terminal). I tried the geshiphp module, though I'm
not sure this will accomplish it, and besides which it doesn't seem to
be quite ready for drupal 7 yet. Therefore, I wondered if anyone could
recommend another way of achieving this, perhaps editing the css
stylesheet. I'm not sure if this is also relevant, but I am using the
Mayo theme.

Thanks for any help.

Ed.
--
[ Drupal support list | http://lists.drupal.org/ ]