From 098dcdcf7aa5f891d54d31ea6b1313f1fe7c5482 Mon Sep 17 00:00:00 2001 From: LogMANOriginal Date: Sat, 5 Nov 2016 19:09:41 +0100 Subject: [PATCH] [How to create a new Format] Add new page --- How-to-create-a-new-Format.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 How-to-create-a-new-Format.md diff --git a/How-to-create-a-new-Format.md b/How-to-create-a-new-Format.md new file mode 100644 index 0000000..c219781 --- /dev/null +++ b/How-to-create-a-new-Format.md @@ -0,0 +1,24 @@ +Create a new file in the `formats/` folder (see [Folder structure](Folder-structure)). + +The file must be named according to following specification: + +* It starts with the type +* The file name must end with 'Format' +* The file type must be PHP, written in small letters (seriously!) ".php" + +**Examples:** + +Type | Filename +-----|--------- +Atom | AtomFormat.php +Html | HtmlFormat.php + +The file must start with the PHP tags and end with an empty line. The closing tag `?>` is [omitted](http://php.net/basic-syntax.instruction-separation). + +Example: + +```PHP +