SyntaxHighlighter 3.0.83

Fork Me On GitHub
whats new?
SyntaxHighlighter is an open source Java Script client side code syntax highlighter.
donate download installation autoloader configuration @syntaxhighlight

'html-script' demo

Source

      <pre class="brush: php; html-script: true">
      	<html>
      	<body>
      		<div style="font-weight: bold"><?= str_replace("\n", "<br/>", $var) ?></div>
      		
      		<?
      		/***********************************
      		 ** Multiline block comments
      		 **********************************/
      		
      		$stringWithUrl = "http://alexgorbatchev.com";
      		$stringWithUrl = 'http://alexgorbatchev.com';
      			
      		ob_start("parseOutputBuffer");		// Start Code Buffering
      		session_start();
      		?>
      	</body>
      	</html>
      </pre>
      

Result

      <html>
      <body>
      	<div style="font-weight: bold"><?= str_replace("\n", "<br/>", $var) ?></div>
      	
      	<?
      	/***********************************
      	 ** Multiline block comments
      	 **********************************/
      	
      	$stringWithUrl = "http://alexgorbatchev.com";
      	$stringWithUrl = 'http://alexgorbatchev.com';
      		
      	ob_start("parseOutputBuffer");		// Start Code Buffering
      	session_start();
      	?>
      </body>
      </html>