WordPress Plugin Include-File-Source

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

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="..."]

Comments are closed.