highlighten-php-source-code

Gesponsorde koppelingen

PHP script bestanden

  1. highlighten-php-source-code

« Lees de omschrijving en reacties

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?
// highlight source
function showsource ($code) {
    ob_start();
    $code = stripslashes($code);
    highlight_string($code);
    $colorsource = ob_get_contents();
        ob_end_clean();
        $colorsource = str_replace (" ", " ",$colorsource);
        
        $colorsource = str_replace("<?", "<pre><?", $colorsource);
        $colorsource = str_replace("?>", "?></pre>", $colorsource);
        
        return $colorsource;
}

?>

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.