MarkdownCode is a Drupal module that adds a text filter. The filter allows using fenced code blocks as in Github-style Markdown. It was made and tested for Drupal 7, but you should be able to use it in Drupal 6 with minor modifications.
Example render:
.some-class { background: white; }
Example code:
```css .some-class { background: yellow; } ```
Links