User forums > General (but related to Code::Blocks)
Printing code from c::b produces a weird misaligned mess
Stuart R:
I seem to be getting some strange results when I try to print from c::b. Different parts of the text seem to be misaligned in different ways depending on how c::b is classifying it (punctuation, keywords etc). However, this doesn't seem to be a common problem so I suspect my own system. Sadly, I don't understand enough about c::b and printing to know where to start. I'm using c::b 12.11 on Ubuntu 13.04 - I attach an image of the output. Any help would be appreciated.
Thanks
Stu R
[attachment deleted by admin]
Alpha:
I am not exactly sure what your problem is, but you could try changing fonts (Settings->Editor). If this issue only shows up when you print directly from Code::Blocks, you could try exporting as a PDF, and printing that.
Stuart R:
Thanks Alpha, changing the font didn't change anything (other than the font of course!). The output remains just like the jpg in the attached file. I can print directly and easily from gedit etc but would have found it easier to print from within c::b. I'm not sure whether it's related, but how do I export to PDF - I would have expected an Export under File but don't have that option.
oBFusCATed:
Select a pdf printer, you should have it by default.
Does printing from Scite works correctly?
Stuart R:
Now that seems to be helping. I installed Scite, loaded the same file and tried to print and got:
>a2ps "Game.cpp"
sh: 1: a2ps: not found
>Exit code: 127
Also - I don't seem to have a pdf printer (sceenshot attached).
While this obviously suggests that I need a2ps, do you know whether this indicates that a wider set of utilities is missing? Apologies if this is straying from c::b.
Navigation
[0] Message Index
[#] Next page
Go to full version