Plugin Directory

External Files

External files allows an author to insert the contents of an external file or url into a post, with the text automatically highlighted accordingly.

External files provides a shortcode [external] which can be used to insert the contents of a file or url into the current post or page. The plugin will automatically format the text based on the extension (for files) or mime type (for urls), using Alex Gorbatchevs' Syntax Highlighter javascript.

The shortcode can accept three optional parameters:

  • format can be used to specify a highlighting format, rather than letting the plugin decide which format to use
  • start specifies a line number to output from, so sections of a file/url can be shown
  • end specifies the line to stop at

See the installation page for usage examples.

The available formats are:

  • AS3
  • Bash
  • Cpp
  • CSharp
  • Css
  • Delphi
  • Diff
  • Groovy
  • Java
  • JavaFX
  • JScript
  • Perl
  • Php
  • Plain
  • PowerShell
  • Python
  • Ruby
  • Scala
  • Sql
  • Vb
  • Xml

Requires: 2.5 or higher
Compatible up to: 2.8
Last Updated: 2009-6-21
Downloads: 1,070

Average Rating

5 stars
(1 ratings)

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.