MauPi

My Stuff

2009-10-08

Syntax Highlight

Playing with Javascript Syntax Highlighter from : http://alexgorbatchev.com/wiki/SyntaxHighlighter

Test javascript code:

// my code
var stringa = "Hello, world!";
function myHello() {
alert("Ciao"); // Commento
}


Test php code:

<html>
<body>
<div style="font-weight: bold"><?= str_replace("\n", "<b"."r/>", $var) ?></div>
<?php
/***********************************
** Multiline block comments
**********************************/

$stringWithUrl = "http://www.google.com";

ob_start("parseOutputBuffer"); // Start Code Buffering
session_start();
?>
</body>
</html>

2007-05-14

Creazione blog





Collaboratori