WP Include-File-Source is a simple WordPress plugin for publishing source codes which are saved as files in the system of your server or web space. It uses the well known SyntaxHighlighter plugin to generate proper code visualization, t.m. you need to install this plugin, too.
Features
- Easy handlung using the short tag [
include-source] - No configuration required
- Auto-detection code languages from file extensions
- Optional
type="language"tag to specify the highlighting type manually - Including multiple files in one source code block
Requirements, download and installation
- As the plugin core is class based you need PHP 5. Furthermore this plugin requires the SyntaxHighlighter plugin.
- The actual version of the plugin is
1.0. You can view the package details here or download the ZIP file directly here. - To install the plugin, download the zip, extract the folder
wp-include-file-sourcein your plugin directory and activate the plugin in WordPress.
Usage
- To include a file (e.g. the c++ file main.cc), write
[include-source file="/path/from/document-root/main.cc"]. All paths are related to your document root (in PHP$_SERVER['DOCUMENT_ROOT']) - To include multiple files, type
[include-source file1="..." file2="..." file3="..." ...] - To specify the language yourself (e.g. PHP), write
[include-source type="php" file="..."]

