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.
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
Reassigning.
Please, attach the project and detailed steps to reproduce. What does option SYNTAX HIGHLIGHTING mean? Where do you find it?
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.
It is known bug, see the original issue #163730. *** This bug has been marked as a duplicate of bug 163730 ***