WordPress plugin intelligence profile

File Inliner

This plugin displays the content of a file in a post.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 2.7
Current version1.2.0
WordPress coverageTested up to WordPress 2.7
Minimum stackWP 2.0 · PHP —
Directory statusactive
Last directory update14 May 200917y ago
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records File Inliner version 1.2.0 as active, updated 17y ago and tested up to WordPress 2.7.

Overview

About this plugin

This plugin displays the content of a file in a post. The content of the file

(called a “snippet”) is put in a <pre></pre> block by default.

It has the following advantages over pasting the content of the file in your post

yourself:

  • When the file is modified, no need to modify the posts referring to it
  • Indentation is preserved by default (useful to show code snippets)
  • Can optionally provide a link to the file (no need to copy-paste your snippet)

If requested (see the preserveformat parameter), the content of the file

is put in a <div></div> block, with each line (delimited by

the carriage return) in its own <p></p> block.

Usage

Syntax: [file lang="some_lang" start="a_line_number" end="a_line_number" link="on_or_off" style="some_style_properties" preserveformat="on_or_off"]path/to/your/file[/file]

Note: The order of the attributes is mandatory!

Example: Inlining of a file

In your post, write [file]path/to/your/file[/file]. That’s it!

Example: Using a syntax highlighter plugin

If you write [file lang="cpp"]path/to/your/file[/file] (for instance),

and if the syntax highlighter plugin you use supports

the <pre lang="*"></pre> syntax (most does), then the content

of your file will be processed by the syntax highlighter plugin as usual.

Example: Provide a link to the file

If you write [file link="on"]path/to/your/file[/file], a link will

be automatically added to the top left of the text area.

Example: Inline a subset of a file

If you write [file start="10" end="20"]path/to/your/file[/file],

only the lines 10 to 20 of the file will be displayed. You can omit the start

(ie. “from beginning to line 20”) or the end (ie. “from line 10 to the end of

the file”) if you want.

Example: Set the color of the text to red

In your post, write [file style="color: #FF0000;"]path/to/your/file[/file].

Example: Prevent the plugin to process a [file][/file] block

Just write [file off]your content[/file].

Note: The ‘off’ attribute must come BEFORE any other ones.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • code
  • files
  • inline
  • text
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 2.7

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 2.7.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to2.7
Minimum requirementsWordPress 2.0 · PHP not listed
Update activity14 May 200917y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.