Plugin info

Total downloads: 3,650
Active installs: 10
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 5/14/2009 (6075 days ago)
Added to WordPress: 6/9/2008 (17 years old)
Minimum WordPress version: 2.0
Tested up to WordPress version: 2.7.1
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 6075 days ago

20/100

Is File Inliner abandoned?

Possibly abandoned (last update 6075 days ago).

Compatibility

Requires WordPress: 2.0
Tested up to: 2.7.1
Requires PHP: f

Developers

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Inline Image Upload for BBPress
Rating 4.6/5 (63 reviews)Active installs 3,000
Tooltipy (tooltips for WP)
Rating 4.6/5 (67 reviews)Active installs 1,000
Elementor Inline SVG
Rating 3.9/5 (10 reviews)Active installs 1,000
Front-end Editor
Rating 4.0/5 (23 reviews)Active installs 600
Read More Right Here
Rating 5.0/5 (3 reviews)Active installs 300
Pattern CSS – The CSS Editor For Blocks
Rating 5.0/5 (8 reviews)Active installs 100

Description

This plugin displays the content of a file in a post. The content of the file
(called a “snippet”) is put in a

 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

block, with each line (delimited by
the carriage return) in its own

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

 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.

Installation

  1. Upload fileinliner.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Frequently Asked Questions

How is the content of the file retrieved by the plugin?

The PHP function
file_get_contents
is used. Your file must be readable by the web server.

Can I use a URL instead of a path to the file?

From the file_get_contents
documentation: A URL can be used as a filename with this function if the
fopen wrappers
have been enabled.

Check your server configuration.

Review feed

No reviews available

Screenshots

  1. Inlining of a text file

    Inlining of a text file

  2. Inlining of a C++ file, with syntax highlighting (using CodeHighlighter)

    Inlining of a C++ file, with syntax highlighting (using CodeHighlighter)

  3. Inlining of a Python file, with syntax highlighting (using CodeHighlighter),
and a download link

    Inlining of a Python file, with syntax highlighting (using CodeHighlighter), and a download link

  4. Inlining of some lines of a Python file, with syntax highlighting (using
CodeHighlighter), and a download link

    Inlining of some lines of a Python file, with syntax highlighting (using CodeHighlighter), and a download link

Changelog

No changelog available