Help:Extensions

From PS4 Developer wiki
Revision as of 12:18, 12 June 2013 by Defyboy (talk | contribs) (Created page with "This wiki contains several extensions. Currently enabled extensions will be listed on this page, as well as their use. == Source Code Highlighting == Syntax Highlighting via ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This wiki contains several extensions. Currently enabled extensions will be listed on this page, as well as their use.

Source Code Highlighting

Syntax Highlighting via GoogleCodePrettify: http://www.mediawiki.org/wiki/Extension:GoogleCodePrettify

use <source> tags to include autodetected source formatting. Try <source lang=language>

<?php 
        // create curl resource 
        $ch = curl_init(); 

        // set url 
        curl_setopt($ch, CURLOPT_URL, "example.com"); 

        //return the transfer as a string 
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 

        // $output contains the output string 
        $output = curl_exec($ch); 

        // close curl resource to free up system resources 
        curl_close($ch);      
?>