Results 1 to 11 of 11

Thread: Javascript and Visual Basic Color Coding

  1. #1

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    Javascript and Visual Basic Color Coding

    Does anyone have any php code to color code vb and javascript?

    like this site?

  2. #2
    scoutt
    Guest
    like what #ffffff or the RGB colors?

    this site uses teh #ffffff hex code. what else where you looking for?

  3. #3

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    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:
    1. Private Sub Form_Load()
    2. Dim myForm As Integer
    3. End Sub

    in that coloring?

    get my drift?

  4. #4
    scoutt
    Guest
    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

  5. #5
    scoutt
    Guest
    it might be

    show_source(filename)

  6. #6
    scoutt
    Guest
    or if you want somethign different go here

    http://www.zend.com/codex.php?CID=334

  7. #7

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    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

  8. #8
    scoutt
    Guest
    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().

  9. #9

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    Do you have any specific code to offer me or not?

  10. #10
    scoutt
    Guest
    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

  11. #11

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width