Does anyone have any php code to color code vb and javascript?
like this site?
Printable View
Does anyone have any php code to color code vb and javascript?
like this site?
like what #ffffff or the RGB colors?
this site uses teh #ffffff hex code. what else where you looking for?
No,
like i pass a string to a php function,
say:
ColorCodeVB ("Private Sub Form_Load()
Dim myForm As Integer
End Sub");
and then it will be parsed to show:
VB Code:
Private Sub Form_Load() Dim myForm As Integer End Sub
in that coloring?
get my drift?
ohh you want the color for the code when it is printed on the screen.
not positive but I think it is phpcolor():
I was just thinking of this today. I thought I had the code but will have to look for it.
dang now I have to think :D
it might be
show_source(filename)
or if you want somethign different go here
http://www.zend.com/codex.php?CID=334
I knew about the highlight_string methog, but that is for PHP code, I am asking if anyone has a script to color code Visual Basic code
one of those scripts in the url I gave you should work. it wouldn't matter what it is. like the [ php ] code here. it works on any scripts because it uses the hightlight_string().
Do you have any specific code to offer me or not?
well if you would have taken the time to look at the link I gave you it has 4 different programs that do what you want. but I think this one does it better.
http://www.zend.com/codex.php?id=609&single=1
and if you go to the bottom you can click on the link to see a sample. does about 10 different languages
Far out mate!
I HAVE BEEN TO THAT SITE!
DOES ANYONE HAVE ANY CODE, SPECIFIC TO VISUAL BASIC, THAT WILL DO WHAT I AM ASKING?
THAT LINK DOES NOT HAVE SPECIFIC CODE!!!!
I will delete this thread sooon...