We have recently upgraded to Confluence 5.4.2 and I'm having problems with the code macro. On the screen, all is well and the code block is displayed in a non proportional font. However when I export to .pdf , the code block is rendered in a proprotioal font. Having done some more research, I find the code block is written by the syntaxhighlighter script.
I can change the characteristics of the output by adding the following to the html stylesheet changes the screen output, but adding the same to the pdf style sheet does nothing.
.syntaxhighlighter .code .container * {
font-size: 8px !important;
line-height: 20px !important;
}
Similarly specifying the font in the above in the pdf stylesheet as shown below has no effect. So I am left displaying missaligned contents.
font-family: "courier new", monospace;
Can anyone give me an answer?