There are a large number of options available that affect how printouts render.
Accessing Print Settings
The IPrint
The Document Title
The document title can optionally be displayed at the top of each page in a printer view. It is visible when the IPrintnull
and the Istrue
, which is the default.
This code sets the document title that is displayed at the top of each page:
Turning Off Syntax Highlighting
Syntax highlighting is on by default for printer views. To turn it off and make text black and white, set the IPrintfalse
.
Using a Custom Highlighting Style Registry
When syntax highlighting is on for printer views, it will use the IHighlighting
A IPrint
See the Highlighting Style Registries topic for more information on highlighting style registries.
Displaying Whitespace
Tabs and spaces can be visually displayed when the IPrinttrue
. The default is to not show whitespace.
Allowing Collapsed Outlining Nodes
Collapsed outlining nodes are automatically expanded in printer views when the IPrintfalse
, which is the default value. Set the property to true
to allow currently-collapsed outlining nodes in the document to render as collapsed in the printer view.
Displaying Column Guides
Column guides can be rendered when the IPrinttrue
. The default is to not show column guides.
Displaying Indentation Guides
Indentation guides can be rendered when the IPrinttrue
. The default is to not show indentation guides.
Displaying Squiggle Lines
Squiggle lines, such as those that mark syntax errors, can be rendered when the IPrinttrue
. The default is to not show squiggle lines.