PHP syntax highlight code question
Moderator: General Moderators
-
like_duh44
- Forum Commoner
- Posts: 63
- Joined: Sat Jul 26, 2003 6:57 pm
PHP syntax highlight code question
Hi, I have a code bank where I want to highlight the php code. I came along this code: http://www.evilwalrus.com/viewcode.php?codeEx=319 and was wondering how the heck I would use it LOL. Would I just include it in the page that outputs the code and use one of the highlighter's functions or what? Thanks
Well, I'd rather use something similiar to BigE's (the One) Highlight with Line Numbers snippet.
Works well when I tried it some time ago, and easier to learn from, aswell as does the trick.
Works well when I tried it some time ago, and easier to learn from, aswell as does the trick.
-
like_duh44
- Forum Commoner
- Posts: 63
- Joined: Sat Jul 26, 2003 6:57 pm
I tried the highlight_string() command, but nothin happened. Do I have to change all the < and $gt; to < and >, respectively? It should still work, right? I checked the server, I'm running php 4.2.2 with highlight.string set. What am I doing wrong? You can check out the page here: http://www.vgapws1.myhost24.com/devcorn ... rstpost=46
See this topic: viewtopic.php?t=13153&highlight=highlig ... ly+scripts
-
Cruzado_Mainfrm
- Forum Contributor
- Posts: 346
- Joined: Sun Jun 15, 2003 11:22 pm
- Location: Miami, FL