Extension:PieceOfCode

What can this extension do?
This MediaWiki extension allows to import SVN file from several repositories and show them completely inside articles or just some lines.

Usage
This extension implements the parser tag &lt;pieceofcode&gt;. Here's a sample invocation that imports a piece of code: file      = /trunk/PieceOfCode-dr.php revision  = 5 connection = PieceOfCode-dr lines     = 2-13 To see the result visit: http://wiki.daemonraco.com/wiki/PieceOfCode-dr#Usage

Connections
A connection is a piece of configuration used to identify a repository and specify its connection data. For this purpose, PieceOfCode uses the configuration variable $wgPieceOfCodeSVNConnections, this variable is an array where each element is an array itself with at least one value called url. This is the list of values that can be stored inside these items: An example of its use may be something like this: In this case, MyProject is the key that identifies this connection.

Configuration
This is the set of variables users can modify to change PieceOfCode behavior:

Downloads

 * Downloads:
 * PieceOfCode-dr-0.2.tar.gz
 * PieceOfCode-dr-0.1.tar.gz
 * PieceOfCode-dr-0.1.tar.gz
 * Browse all:
 * GoogleDrive list

Installation
If you want to install this extension, follow these steps:
 * First, download the extension from https://drive.google.com/folderview?id=0B8BST1iQSCumWnRfN3pvYURsVVE&usp=sharing. This will give you a tar.gz file.
 * Second, extract the tar.gz file inside you mediawiki extensions directory. This will create a folder called PieceOfCode-dr.
 * Third, add these lines at the end of your LocalSettings.php file:
 * Then, enjoy!.

Version trunk

 * Nothing yet

Version 0.2

 * Highlight Specified lines.
 * Adding multirange of lines support.
 * Adding param 'separator' in order to separate ranges of lines.
 * Adding POCStats: a new class to keep statistics.
 * Adding configuration to manage this new feature.
 * Adding class POCFlags in order to manage PieceOfCode flags.
 * Adding class POCVersionManager in order to manage version upgrades of PieceOfCode.
 * Almost all Specia:PieceOfCode works with wiki text.
 * MediaWiki 1.22 compatibility fixes.

Version 0.1

 * Extension presentation.

@TODO

 * Register what article includes what font-code.
 * SpecialPage: separate REQUEST actions.
 * others...
 * Pre-recursive parse inside tags.