Template:File

Revision as of 13:56, 6 December 2011 by Carandraug (talk | contribs) (created file template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
File: {{{1}}}
{{{2}}}

[edit]

Template-info.png Template Documentation

This template is used to include the contents of files. The first argument is the filename/filepath but can be left blank.

  • the actual code still needs to be inside a <pre> ... </pre> block.
  • to markup only the name of a file (e.g., /etc/octave3.2.conf), use Template:Path instead.

Example:

{{File|~/.octaverc|<pre>
## make prompt look like python
PS1(">>> ")
PS2("... ")

## alias help to man
function man (name)
  help (char (name))
endfunction

## load all packages
pkg load all;
</pre>}}

Will produce:

File: ~/.octaverc
## make prompt look like python
PS1(">>> ")
PS2("... ")

## alias help to man
function man (name)
  help (char (name))
endfunction

## load all packages
pkg load all;