![]() |
|
#1
|
||||
|
||||
Displaying Code Using NotepadI noticed on the GIDZipTest Page the code appears in a nice table with a different colored background. I tried to put the same thing on my site and notice how it miserably fails on my dark background.
So, I decided to make a nice notepad image. Here is an example of it: http://www.mrbobdouglas.com/notepad/notepad.htm A download is attached to this post containing the 6 files. http://www.mrbobdouglas.com/dev/php_compress.php is an example of where I used it for my site. You can change the title of the Notepad document as well as the height. Also, all you have to change is the text and the table will work with it to produce the height. What cha think of it? |
||||
|
#2
|
||||
|
||||
|
I was actually wondering for a LONG time what you meant by different coloured backgrounds...
The way to get that easily is by using PHP's highlight_string() function and a little bit of imagination. There are multiple posts on it here at GIDForums™ - but here's one that was discussed just recently: http://www.desilva.biz/forum/viewtopic931.php __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Save code option | BobbyDouglas | GIDForums™ | 3 | 09-Nov-2003 00:48 |
| strange compile error - code from reputable author!! | newbie_cpp | C++ Forum | 0 | 06-Nov-2003 17:15 |
| error handling code.. | daveyp225 | C++ Forum | 0 | 26-Oct-2003 07:46 |
| something wrong with this code | loon | MySQL / PHP Forum | 5 | 07-Jul-2003 06:55 |
| [class] 404 search function code | jrobbio | MySQL / PHP Forum | 6 | 22-Apr-2003 10:32 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The