I have a 6.14 site using the garland theme. I would like my code blocks to appear with a border, but they do not.
Here is what my input looks like: http://farm4.static.flickr.com/3427/4080754129_1ff95366e3_o.jpg
Here is what my view looks like: http://farm3.static.flickr.com/2186/4080754137_cba90c97a4_o.jpg
Here on drupal.org, I don't have that problem. I'll input a code block right here, and see how it has a different background color and is surrounded by a border:
#include
int
main (int ac, char *av[])
{
print ("test\n");
return 0;
}
I want my code to display like that.
I have also tried the formatting described at http://www.unicon.net/node/1078
<div class="code-block">
<pre>
<xmp>
Code goes here.
</xmp>
</pre>
</div>
But this doesn't work on drupal.org or on my site, and it is more complex than just typing <code>, so I really want to get <code> to work.
Any suggestions?
Comments
Have you install and enabled
Have you install and enabled the code filter module?
I was not aware of the code
I was not aware of the code filter module. Thanks for the pointer.
I have now installed and
I have now installed and enabled the code filter module. The behavior has not changed at all. I think that the code filter module is only for eliminating the need to quote special characters. It does not format the blocks into bordered/shaded regions.
I'm still looking for a way to get my
<code>blocks to display as bordered/shaded regions.Did you enable it under input
Did you enable it under input filters?
Thank you, now it works.
Thank you, now it works.