print command

The print command can be used to print the current document.

Syntax

print [ block
      | bottomMargin n
      | endElement n
      | font fontName
      | leftMargin n
      | lineNumbers { on | off }
      | rightMargin n
      | startElement n
      | tokenized { on | off }
      | topMargin n
      | visible
      ] [...] 

Parameters

block Use the optional parameter block to indicate that only the selected text should be printed.
bottomMargin n Use the optional parameter bottomMargin to indicate the bottom margin.  n must be an integer that is greater than or equal to zero.  n indicates the number of pixels that should be used for the bottom margin.  If you do not specify bottomMargin, the setting is taken from the current.print.bottomMargin parameter.
endElement n Use the optional parameter endElement to indicate the last element that you want printed.  n must be a positive integer.  If you do not specify the end element, printing continues to the end of the file.
font fontName Use the optional parameter font to indicate the name of the font that you want to use to print with.  If you do not specify font, the setting is taken from the current.print.font parameter.  If the print.font parameter is not set, the font is taken from the current view.  The fontName parameter should be in one of the following forms: 
  • fontname-style-height
  • fontname-height
  • fontname-style
  • fontname

where style is one of the three strings "bold", "bolditalic", or "italic", and height is a decimal representation of the font height.

leftMargin n Use the optional parameter leftMargin to indicate the left margin.  n must be an integer that is greater than or equal to zero.  n indicates the number of pixels that should be used for the left margin.  If you do not specify leftMargin, the setting is taken from the current.print.leftMargin parameter.
lineNumbers { on | off } Use the optional parameter lineNumbers to indicate if line numbers should be displayed to the left of each line.  If you do not specify lineNumbers, the setting is taken from the current.print.lineNumbers parameter.
rightMargin n Use the optional parameter rightMargin to indicate the right margin.  n must be an integer that is greater than or equal to zero.  n indicates the number of pixels that should be used for the right margin.  If you do not specify rightMargin, the setting is taken from the current.print.rightMargin parameter.
startElement n Use the optional parameter startElement to indicate the first element that you want printed.  n must be a positive initeger.  If you do not specify a starting element, printing starts at the top of the file.
tokenized { on | off } Use the optional parameter tokenized to indicate if the text should be tokenized or not.  If you do not specify tokenized, the setting is taken from the current.print.tokenized parameter.
topMargin n Use the optional parameter topMargin to indicate the top margin.  n must be an integer that is greater than or equal to zero.  n indicates the number of pixels that should be used for the top margin.  If you do not specify topMargin, the setting is taken from the current.print.topMargin parameter.
visible Use the optional parameter visible to indicate that only visible lines should be printed.

Status

The status parameter is not affected by this command.

Examples

print
print tokenized 


Editor commands and parameters


block command
print.bottomMargin parameter
print.font parameter
print.leftMargin parameter
print.lineNumbers parameter
print.rightMargin parameter
print.tokenized parameter
print.topMargin parameter
visible parameter
print action
Default editor commands