I'm hoping someone can give me step-by-step instructions to fix this, as I'm on a deadline and my knowledge of css is much sketchier than I'd like – time permitting.
I'm trying to print a page with lots of AppleScript code on it. I have a Geshi customisation that works perfectly on screen, with entries in conf/userstyle.css like this:
/* applescriptxt overrides (made the same as standard Apple colours) */
.code.applescriptxt { font-family: Verdana; font-size: 100%; color: #279700; }
.code.applescriptxt .kw1 { color: #691294; font-weight: normal; }
.code.applescriptxt .kw2 { color: #9300e0; font-weight: normal; }
.code.applescriptxt .kw3 { color: #3200ff; font-weight: normal; font-style: italic; }
.code.applescriptxt .kw4 { color: #3200ff; font-weight: normal; }
.code.applescriptxt .kw5 { color: #3200ff; font-weight: bold; }
.code.applescriptxt .kw6 { color: #3200ff; font-weight: normal; }
.code.applescriptxt .kw7 { color: #000000; font-weight: bold; }
.code.applescriptxt .co1 { color: #5f6060; font-style: normal; }
.code.applescriptxt .co2 { color: #5f6060; font-style: normal; }
.code.applescriptxt .co3 { color: #5f6060; font-style: normal; }
.code.applescriptxt .coMULTI { color: #5f6060; font-style: normal; }
.code.applescriptxt .ec0 { color: #000000; }
.code.applescriptxt .br0 { color: #000000; }
.code.applescriptxt .st0 { color: #000000; }
.code.applescriptxt .nu0 { color: #000000}
.code.applescriptxt .me1 { color: #000000; }
.code.applescriptxt .me2 { color: #000000; }
.code.applescriptxt .sy0 { color: #000000; }
.code.applescriptxt .re0 { color: #000000; }
.code.applescriptxt .re4 { color: #000000; }
I have the same entries in conf/userprint.css – and these are picked up beautifully by the default printing capability. Only problem is, the text in those pdfs can't be selected and pasted into AppleScript Editor as all the line breaks are messed up.
DW2PDF printing makes text that can be selected (headers & footers get in the way, but that's OK) – but it's using the default styles for code blocks. I've tried adding the styles above to both /lib/plugins/dw2pdf/style.css and lib/plugins/dw2pdf/tpl/default/style.css, but to no avail. I touched local.php and cleared caches each time.
I'm sure I've missed something really basic, like needing to modify the code above subtly to put it in DW2PDF's style.css (which one?), but I can't figure it out.
I'd be grateful to anyone who could tell me what I've done wrong; I only have until Thursday to find a way to share this page with others without having to host it outside my personal wiki!
Thanks.