Syntax_highlighting

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
meikel
Posts: 135
Joined: Wed Feb 12, 2003 11:12 am
Location: Erfurt
Contact:

Syntax_highlighting

Post by meikel »

@Thorsten, ändere mal bitte die folgende Funktion etwas ab:

Code: Select all

/*
 * Funktion für PHP-Syntax-Highlighting | @@ Meikel Katzengreis, 2003-03-31
 * Last Update: @@ meikel, 2003-05-11
 */
function php_syntax($output) 
{
#################################
	$output[1] = wordwrap($output[1], 120, "\n\t\t", 0);
#################################
	return "<pre>".highlight_syntax(unhtmlentities($output[1]))."</pre>";
}
Bewirkt, daß layoutbedingt Zeilenumbrüche eingefügt, diese aber durch 2 Tabs gekennzeichnet werden.
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hallo Meikel,

ist eingefügt. Danke!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply