print functions using syntax highlighting and the xterm renderer

Share:

Description

This function overrides print.function from the base package to allow highlight to perform syntax highlighting. The highlighted syntax is rendered using the xterm renderer.

Usage

1
print.function(x, useSource = TRUE, detective = getOption("detective"), ...)

Arguments

x

function to print

useSource

logical. Should the source attribute be used if it exists.

detective

the detective highlight should use

...

Ignored

Value

The x argument is returned invisibly

Author(s)

Romain Francois <francoisromain@free.fr>

See Also

highlight renderer_xterm

Examples

1
2
3
4
5
6
7
	## Not run: 
		print( print.function )
		
		# auto printing works too
		print.function
	
## End(Not run)