File Content Help

Modified on 2010/09/24 00:43 by FileContentFormatter — Categorized as: Uncategorized

Displays the contents of a txt based file, for example html,css,txt, directly on a wiki page.
You can verify that the formatter is working by opening this test page.

Administrators

No special actions required.

Markup Usage

What can you do?

Usage:

{ FileCont file=XXX prov=YYY height=ZYX width=XYZ raw=ZZZ rows=XXY cols=YYX }

Where:


All args which have a value that contains whitespaces, must be encapsulated in ' ', ex. '/Folder name with spaces/File.txt'.
There's no guarantee that your file can be displayed, it depends on the browser used, plugins installed, server etc.. However basic Text files and standard wide spread video/pdf file types should work in most browsers.

It may require a couple of attempts find the right way of displaying your file, remember that there are < nowiki > and < nobr > tags which might help you get the right result.



Display a file inside a box


Markup:

{ FileCont file='/Keeper.Garrett.Formatters/Tables/*.html' width=500 height=200}

Result:

(No directory found matching "/Keeper.Garrett.Formatters/Tables/".)




Display a file inside a box using a different provider


Markup:

{ FileCont file='/Keeper.Garrett.Formatters/Tables/*.html' prov='Local Files Provider' width=500 height=200 }

Result:

(No directory found matching "/Keeper.Garrett.Formatters/Tables/".)




Display the code of a html page in a box


Markup:

{ FileCont file='/Keeper.Garrett.Formatters/Tables/*.html' prov='Local Files Provider' raw=true rows=12 cols=80 }

Result:

(No directory found matching "/Keeper.Garrett.Formatters/Tables/".)




Display a file


Markup:

{ FileCont file='/Keeper.Garrett.Formatters/Tables/*.html' }

Result:

(No directory found matching "/Keeper.Garrett.Formatters/Tables/".)




Using tags to display the entire code of a html page


Markup:

@ @ { FileCont file='/Keeper.Garrett.Formatters/Tables/*.html' prov='Local Files Provider' raw=true } @ @

Result:


(No directory found matching "/Keeper.Garrett.Formatters/Tables/".)





Without tags, displaying an entire html page


Markup:

{ FileCont file='/Keeper.Garrett.Formatters/Tables/*.html' prov='Local Files Provider' raw=true }

Result:

(No directory found matching "/Keeper.Garrett.Formatters/Tables/".)