Last modified on 15 December 2010, at 04:40

Template:ROOT/Template Documentation/RootOutput

This is the documentation for the template RootOutput designed for the book ROOT. Please embed this documentation on the template's page (or elsewhere) with {{ROOT/Template Documentation/RootOutput}}. To edit the template documentation, please edit this page.

This is a template designed for the book ROOT. It should be used to format output during an interactive ROOT session.

UsageEdit

SyntaxEdit

{{ROOT/RootOutput|#1}}
Parameter Default Value Mandatory Description
#1   no Output to be displayed.

CommentsEdit

  • Do not add a blank line before this template or you'll get ugly space.
  • To format multiple lines of code, only use one template and break lines with <br />.
  • Well, this is annoying: You can't use the = sign, curly braces or a pipe inside the parameter. Encode them as HTML, eg. &#61; for the equality sign. Please see [1] for a list of HTML replacements.

ExampleEdit

In this example, we display a "hello world" program. Note that I'm also making use of the Template:ROOT/RootInputLine.

CodeEdit

{{ROOT/RootInputLine|0|cout << "hello world" << endl;  }}
{{ROOT/RootOutput|hello world  }}

ResultEdit

root [0] cout << "hello world" << endl;
hello world

See AlsoEdit