View Single Post
  #20   Spotlight this post!  
Unread 26-01-2004, 16:16
Jeremy_Mc's Avatar
Jeremy_Mc Jeremy_Mc is offline
GitHubber
no team
Team Role: Mentor
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Orlando, FL
Posts: 496
Jeremy_Mc will become famous soon enoughJeremy_Mc will become famous soon enough
Re: NRG Code Repository

Quote:
Originally Posted by Raven_Writer
I'm not excellent in PHP, but I'm pretty sure there's a way to search for certain strings, and if it's found, just color-code it. Kinda like:

PHP Code:
$text strtext("$filename");
 
if(
$text){
  
explode("void""<font color='#0000FF'>void</a>");

(I highly doubt strtext(...) works, it's just something that came to me
Why are you using explode?

Check http://us3.php.net/manual/en/function.eregi-replace.php

You have to know regular expressions, but it's the quickest and most flexible way to do it.

Just search for the keywords and replace them when you read the file into a variable...it shouldn't be too tough.
__________________
GitHub - Collaborate on code, documentation, etc. - http://github.com