Results 1 to 7 of 7

Thread: Code Colouring

  1. #1

    Thread Starter
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Code Colouring

    This is some code

    VB Code:
    1. If strName = "ILMV" then
    2.    MsgBox "w00t"
    3. End If

    Using PHP etc, how do i colour code like that ^^^

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Code Colouring

    Python
    Code:
        # Find out what char the term has.
        for link in constants.LINK_CHAR:
    
            if link[0] == term and char1 != '':
                char2 = link[1]
    
            if link[0] == term and char1 == '':
                char1 = link[1]

  3. #3
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Code Colouring

    PHP Code:
    #include <stdio.h>
    #include <conio.h>
    #include <stdlib.h>
    #include <dos.h>

    void main()
    {
    int i,j;
    clrscr();
    textmode(C80);
    for(
    i=1;i<26;i++)
    {
      for(
    j=1;j<80;j++)
      {
      
    gotoxy(j,i);
      
    textbackground(rand() % 15);
      
    delay(10);
      
    cprintf(" ");
      }
      }
      
    getch();
      } 
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  4. #4
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Code Colouring

    Code:
    #include <stdio.h> 
    #include <conio.h> 
    #include <stdlib.h> 
    #include <dos.h> 
    
    void main() 
    { 
    int i,j; 
    clrscr(); 
    textmode(C80); 
    for(i=1;i<26;i++) 
    { 
      for(j=1;j<80;j++) 
      { 
      gotoxy(j,i); 
      textbackground(rand() % 15); 
      delay(10); 
      cprintf(" "); 
      } 
      } 
      getch(); 
      }
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  5. #5
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Code Colouring

    #include <stdio.h>
    #include <conio.h>
    #include <stdlib.h>
    #include <dos.h>

    void main()
    {
    int i,j;
    clrscr();
    textmode(C80);
    for(i=1;i<26;i++)
    {
    for(j=1;j<80;j++)
    {
    gotoxy(j,i);
    textbackground(rand() % 15);
    delay(10);
    cprintf(" ");
    }
    }
    getch();
    }
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  6. #6
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Code Colouring

    I wish if there was auto indentation in [code] and [Highlight=VB] tags
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  7. #7
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Code Colouring

    Code:
        # Find out what char the term has.
        for link in constants.LINK_CHAR:
    
            if link[0] == term and char1 != '':
                char2 = link[1]
    
            if link[0] == term and char1 == '':
                char1 = link[1]
    EDIT: Just testing if it's gonna show in the same colors (using the VBF FF extension) and I totally forgot you made it
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

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