Title: External Files
Author: adamh
Published: <strong>21 ژوئن 2009</strong>
Last modified: 21 ژوئن 2009

---

جستجوی افزونه‌ها

این افزونه **با ۳ نگارش عمدهٔ اخیر وردپرس آزمایش نشده است**. ممکن است دیگر نگهداری
یا پشتیبانی نشود و هنگام استفاده با نگارش‌های تازه‌تر وردپرس مشکل سازگاری داشته 
باشد.

![](https://s.w.org/plugins/geopattern-icon/external-files.svg)

# External Files

 توسط [adamh](https://profiles.wordpress.org/adamh/)

[دانلود](https://downloads.wordpress.org/plugin/external-files.zip)

 * [جزئیات](https://fa.wordpress.org/plugins/external-files/#description)
 * [نقد و بررسی‌ها](https://fa.wordpress.org/plugins/external-files/#reviews)
 *  [نصب](https://fa.wordpress.org/plugins/external-files/#installation)
 * [توسعه](https://fa.wordpress.org/plugins/external-files/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/external-files/)

## توضیحات

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](http://alexgorbatchev.com) 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

### Future features

Following is a list of ideas and features to add:

 * _BASE\_PATH_ and _BASE\_URL_ options that can be used in the shortcode to avoid
   typing the same long path/url each time
 * a list of available formats with the checkboxes to enable/disable each individually,
   thus avoiding having to load all of them
 * an option for changing the theme of the syntax highlighter

## نصب

 1. Install the plugin and activate
 2. In a post or page, type [external]/path/to/your/script.txt[/external]

Examples:

[external]/path/to/file.php[/external]
 [external]http://my.website.com/about.html[/
external] [external start=10 end=20]/very/long/script.js[/external] [external format
=xml]/not/really/a-php-document.php[/external]

## سوالات متداول

_My code isn’t being highlighted_

This might mean that the theme you are using doesn’t call wp_footer before the closing
body tag. The javascript that applies the highlighter is attached to the wp_footer
action – either try another theme (the default wordpress theme will work) or add
the theme by typing the following inside the closing body tag:

    ```
    <?php wp_footer(); ?>
    ```

_My code should be formatted as *x_, but is showing up as plain*

If you are specifying a format, are you using one from the available formats list(
see the Description page)? If you are not specifying a format, does the file have
a correct extension for the file type or is the web page returning with the correct
Content-Type header?

_I’m still stuck_

Get in touch, I’ll see what I can do!

## نقد و بررسی‌ها

نقد و بررسی‌ای برای این افزونه یافت نشد.

## توسعه دهندگان و همکاران

“External Files” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

 *   [ adamh ](https://profiles.wordpress.org/adamh/)

[ترجمه “External Files” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/external-files)

### علاقه‌ مند به توسعه هستید؟

[کد را مرور کنید](https://plugins.trac.wordpress.org/browser/external-files/)، [مخزن SVN](https://plugins.svn.wordpress.org/external-files/)
را بررسی کنید، یا از طریق [RSS](https://plugins.trac.wordpress.org/log/external-files/?limit=100&mode=stop_on_copy&format=rss)
در [گزارش توسعه](https://plugins.trac.wordpress.org/log/external-files/) مشترک شوید.

## گزارش تغییرات

#### 0.1

_2009-06-21_
 * First version! Works for me, comments appreciated.

## اطلاعات

 *  نگارش **0.1**
 *  آخرین به‌روزرسانی **17 سال پیش**
 *  نصب‌های فعال **10+**
 *  نگارش وردپرس ** 2.5 یا بالاتر **
 *  آزمایش‌شده تا **2.8**
 *  زبان
 * [English (US)](https://wordpress.org/plugins/external-files/)
 * برچسب
 * [code](https://fa.wordpress.org/plugins/tags/code/)[Highlight](https://fa.wordpress.org/plugins/tags/highlight/)
   [scripts](https://fa.wordpress.org/plugins/tags/scripts/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/external-files/advanced/)

## امتیازها

هنوز هیچ نقدی ارسال نشده است.

[بررسی شما](https://wordpress.org/support/plugin/external-files/reviews/#new-post)

[مشاهدهٔ همهٔ بررسی‌ها](https://wordpress.org/support/plugin/external-files/reviews/)

## مشارکت کنندگان

 *   [ adamh ](https://profiles.wordpress.org/adamh/)

## پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/external-files/)

## کمک مالی

آیا تمایل دارید از پیشرفت این افزونه حمایت کنید؟

 [ کمک مالی به این افزونه ](http://adamhopkinson.co.uk/)