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.

Author:Adam Hopkinson (profile at wordpress.org)
WordPress version required:2.5
WordPress version tested:2.8
Plugin version:0.1
Added to WordPress repository:21-06-2009
Last updated:21-06-2009
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://adamhopkinson.co.uk
Total downloads:2 148
Active installs:10+
plugin download
Click to start download

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

FAQ
ChangeLog