This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 178101 - Printing as in Editor does not provide line numbers, or does not print color
Summary: Printing as in Editor does not provide line numbers, or does not print color
Status: RESOLVED DUPLICATE of bug 163730
Alias: None
Product: utilities
Classification: Unclassified
Component: Print (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-03 12:53 UTC by polzleitner
Modified: 2009-12-07 06:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description polzleitner 2009-12-03 12:53:29 UTC
Use File->Print to print a java source file. In the Print options I can select "Print as in Editor". The I can print the file with SYNTAX HIGHLIGHTING in COLOR. But I cannot get line numbers (even if I chose "Show Line Numbers"  in the Editor.

When I deselect "Print as In Editor", I do get line numbers, but no color output or syntax highlighting. 

The IDE printing does not provide color AND line numbers. (There is a workaround through print to html, but is deterring).

Wolfgang
Comment 1 Peter Pis 2009-12-04 06:58:49 UTC
Reassigning.
Comment 2 Vladimir Yaroslavskiy 2009-12-04 07:13:21 UTC
Please, attach the project and detailed steps to reproduce.
What does option SYNTAX HIGHLIGHTING mean? Where do you find it?
Comment 3 polzleitner 2009-12-04 09:02:37 UTC
I did not mean SYNTAX HIGHLIGHTING as an OPTION. I am referring to the way a java source file looks in the editor (with keywords in blue, strings in red, etc.). 

When I said with "Syntax Highlighting" I meant "Print as in Editor".

So:
When I print the source file (File->Print), first the Print Preview window appears. On the bottom of this window we get buttons "Page Setup", "Print Options", "Print", and "Close". I choose Print Options. In this options window, I can check a CheckBox "Print as in Editor". Then the options under the "Text" heading in the window are hidden. With that the option "Line Numbers" goes away. "Line Numbers" is only available when the "Print as in Editor" is UNchecked. Independent of the "show line numbers" setting in the Editor itself, no line numbers are printed with "Print as in Editor" selected.

Printing in the mode when "Print as in Editor" is deselected gives me only black and white printing. 

I cannot get a print out of Java Code *WITH* line numbers and *WITH* color.
Comment 4 Vladimir Yaroslavskiy 2009-12-07 06:55:31 UTC
It is known bug, see the original issue #163730.

*** This bug has been marked as a duplicate of bug 163730 ***