NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Syntax color printing when selecting block
Veteran

Joined: 22 Feb 2006
Posts: 106
Reply with quote
One of the nice options of the print dialog is to print also the syntax color.
But when I select a block of code and print it, even if syntax color is checked, all the code lines are in grey Sad

Can you replicate this bug ? I'm using b4615.

Thanks in advance.
View user's profileFind all posts by medifirstSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Make sure that Syntax Print is checked (it turns on the highlighter)
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 22 Feb 2006
Posts: 106
Reply with quote
Of course, when I used the words "the syntax color is checked", I meant "syntax print"
View user's profileFind all posts by medifirstSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Then check your printer settings.
I'm pretty sure that when "Syntax Print" and "Use color" are both checked, PhpED sends colorized content to the printer.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 22 Feb 2006
Posts: 106
Reply with quote
If you print a whole page of PHP code, the syntax color works. It is only not working when selecting and printing a block of code.
View user's profileFind all posts by medifirstSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
does code you are trying to print contain opening php tag like <?php ?
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 22 Feb 2006
Posts: 106
Reply with quote
no, the block code doesn't include PHP tags because it is a block taken in the middle of the page (mostly a bunch of functions) and the PHP tags are only in the top/bottom of the whole PHP page.
View user's profileFind all posts by medifirstSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
without the php tags, the selection is treated as html, yet.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 22 Feb 2006
Posts: 106
Reply with quote
allright, but would it be possible in a future release to check for php tags out of the scope of the code block to use the syntax color when printing ?

For now, I think I'll just have to temporary add some PHP tags around my block just for printing it...
View user's profileFind all posts by medifirstSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
sure, we'll fix this.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 22 Feb 2006
Posts: 106
Reply with quote
Any update on this request ?

Btw, do u plan to improve the print settings (such as font face and size) in the near future ?

Indeed, the default font size is really big and, when for bold words, some letters don't get fully printed (more precisely, the space between the letters is sometimes too small and there's an overlap).
View user's profileFind all posts by medifirstSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
It's all already fixed. Did you give build-4621 a try?

Regarding "default font size", when we send content to the printer we use font currently selected for the editor, its size in "pt" remains the same and is scaled by OS.
We have no plans on improving printing subsystem in v4.6, perhaps will do it in the next major version.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Syntax color printing when selecting block
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 2  

  
  
 Reply to topic