The_Holy_One Posted May 25, 2006 Share Posted May 25, 2006 [code]$stream = file_get_contents("sqlite.php");echo $stream;[/code][b]First Problem:[/b]paragraph doesnt work, if the text inside of the file says:ABCDEFit will shown as one long line: ABC DEF[b]Second Problem:[/b]How to let PHP automaticly Highlight PHP Code ? I see it so often in other Boards or at Homepages, it should be easy but i have no idea how to do it. I think there must be a easier solution as to search specific Keywords. I also found following in my php.ini:; Colors for Syntax Highlighting mode. Anything that's acceptable in; <span style="color: ???????"> would work.highlight.string = #DD0000highlight.comment = #FF9900highlight.keyword = #007700highlight.bg = #FFFFFFhighlight.default = #0000BBhighlight.html = #000000but how to use it ? thanks for any tipp.google is your friend ... show_source($stream) is the solution ^^ lol, i will test it immidiatly.i am a morron: show_source("filemanager.php"); // works perfect :D as long php.ini is set. Link to comment https://forums.phpfreaks.com/topic/10401-solved-how-to-highlight-php-code/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.