Fichier de tests du plugin Prism

see the prism.md source code

Différentes sources ci-dessous dont la mise en page est réalisée grâce à Prim.

Table des matières

1. JSON

"debug": {
    "enabled": 0,
    "development": 0,
    "logfile": {
        "template": "[%datetime%] [%level_name%] %message% %context%"
    },
    "output": {
        "debug": 1,
        "info": 1,
        "notice": 1,
        "warning": 1,
        "error": 1,
        "critical": 1,
        "alert": 1,
        "emergency": 1
    }
}

2. HTML / XML

<!DOCTYPE html>
<html>
    <body>
        <h1>My First Heading</h1>
        <p>My first paragraph.</p>
    </body>
</html>
<root>
    <chapter>
        <title>A chapter's title</title>
    </chapter>
</root>

3. PHP

    include_once 'marknotes/includes/initialize.php';

    $class = new Includes\Initialize();

    $bReturn = $class->init();

    unset($class);

4. CSS

body {
    background : #FFF;
    color      : #000;
    font-family: Georgia, serif;
    line-height: 1.2;
}

5. JS

function ajaxify($params) {

    var $data = {};
    $data.task = (typeof $params.task === 'undefined') ? '' : $params.task;
    $data.param = (typeof $params.param === 'undefined') ? '' : $params.param;

    return true;
}

6. Librairie

Prism implémente la librairie Prism