You are here

CSS

code filter module for displaying code in a drupal post

Wiki Terms: 

This site uses code filter module to diplay code correctly in posts.

use <pre> and <code> tags to wrap your code.


this is a p tag

this is an h1 tag

I also put this in my style.css file in this drupal installation:

making <pre> tags make code snippets show up in a browser nicely

Wiki Terms: 

I put this in my style.css file in this drupal installation:

code, tt, pre {
background-color: #EDF1F3;
font-family: "Bitstream Vera Sans Mono",Monaco,"Lucida Console",monospace;
font-size: 0.9em;
line-height: 1.2em;
}

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer