947740 Posted May 16, 2008 Share Posted May 16, 2008 Has anyone ever seen anything like this (see atached)? I just made this in my free time, and I thought it was kind of cool (without any bias, of course). Sadly, I do not have a website or anything like that, so you will have to try it out on your own server. You will have to put it in your document root for it to search for files correctly, which it says in the file. Go ahead and check the code out beforehand so you know I am not trying to hack your system or something crazy like that. :-\ If you have any recommendations, comments, or critiques, just let me know. The big question: do you think it is useful at all? [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/105998-scandir-code-that-allows-you-to-see-the-syntax-of-your-code/ Share on other sites More sharing options...
947740 Posted May 20, 2008 Author Share Posted May 20, 2008 Hey, who is downloading the file without posting anything!? I made a much better version of the aforementioned syntax highlighter. Does anyone have any suggestions/comments? I am not into the whole design thing, so you may find the colors distasteful... :-\ Please do not steal my code and say it is your own. The .txt file is actually a html file, so you will have to change the extension. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/105998-scandir-code-that-allows-you-to-see-the-syntax-of-your-code/#findComment-545355 Share on other sites More sharing options...
947740 Posted May 23, 2008 Author Share Posted May 23, 2008 Are you guys going to post a response with ideas/critiques, or are you going to keep downloading without saying anything? Link to comment https://forums.phpfreaks.com/topic/105998-scandir-code-that-allows-you-to-see-the-syntax-of-your-code/#findComment-548184 Share on other sites More sharing options...
ILYAS415 Posted May 26, 2008 Share Posted May 26, 2008 Hmm im going to upload to my site and check if it works... Link to comment https://forums.phpfreaks.com/topic/105998-scandir-code-that-allows-you-to-see-the-syntax-of-your-code/#findComment-550123 Share on other sites More sharing options...
ILYAS415 Posted May 26, 2008 Share Posted May 26, 2008 wow luv it but not going to giv any links and im deleting it straight away Oh yes and also you need to check if the file exists. I got an error when i used an invalid file name... Warning: highlight_file(dsgdgg) [function.highlight-file]: failed to open stream: No such file or directory in /home/*************/public_html/exhighlighter.php on line 32 Warning: highlight_file() [function.highlight-file]: Failed opening 'dsgdgg' for highlighting in /home/*************/public_html/exhighlighter.php on line 32 Link to comment https://forums.phpfreaks.com/topic/105998-scandir-code-that-allows-you-to-see-the-syntax-of-your-code/#findComment-550128 Share on other sites More sharing options...
947740 Posted May 29, 2008 Author Share Posted May 29, 2008 Did you use the first version, or the second? Link to comment https://forums.phpfreaks.com/topic/105998-scandir-code-that-allows-you-to-see-the-syntax-of-your-code/#findComment-552803 Share on other sites More sharing options...
ILYAS415 Posted May 29, 2008 Share Posted May 29, 2008 First version. Link to comment https://forums.phpfreaks.com/topic/105998-scandir-code-that-allows-you-to-see-the-syntax-of-your-code/#findComment-552826 Share on other sites More sharing options...
947740 Posted May 30, 2008 Author Share Posted May 30, 2008 Try the second version (attached to my second post); it is a lot better. Link to comment https://forums.phpfreaks.com/topic/105998-scandir-code-that-allows-you-to-see-the-syntax-of-your-code/#findComment-553925 Share on other sites More sharing options...
Recommended Posts