501
edits
Carandraug (talk | contribs) m (moved note about [[Template:Path] to top) |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
This template is used to include the contents of files. The first argument is the filename/filepath | This template is used to include the contents of files. The first argument is the filename/filepath but can be left blank. | ||
Example: <pre>{{File|~/.octaverc|<pre> | * the actual code still needs to be inside a {{Codeline|<nowiki><pre> ... </pre></nowiki>}} block. | ||
* to markup ''only'' the name of a file (e.g., {{path|/etc/octave3.2.conf}}), use [[Template:Path]] instead. | |||
Example: | |||
<pre>{{File|~/.octaverc|<pre> | |||
## make prompt look like python | ## make prompt look like python | ||
PS1(">>> ") | PS1(">>> ") | ||
Line 30: | Line 34: | ||
</pre>}} | </pre>}} | ||
[[Category:Template with documentation]] |
edits