Results 1 to 7 of 7

Thread: code snippets

  1. #1

    Thread Starter
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    Hi guys, how is it possible that my code snippets are not coloured while others do?
    I use the tags "code".

    example:

    Code:
    Option Explicit
    
    Sub Form_Load()
      'Why isn't this coloured????
    End Sub

  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    John, James and company took that feature out for some reason....for C++ and languages like it you can use the php tag.. :
    PHP Code:
    #include <iostream.h>

    int main() {
    cout<<"hello"<<endl;
    return 
    0;

    or you could use color tags inside the code tags

  3. #3

    Thread Starter
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    Take look at the folowing thread:
    http://forums.vb-world.net/showthrea...334#post264334
    Do you mean that this message was coded with the color tags?

  4. #4
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    To colorize your code you need a tool, for example my vB Tool (see signature). Or you can edit them by yourself

  5. #5

    Thread Starter
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    Ok, that's what I was looking for.
    Tx for your reactions.

  6. #6
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    you can also try the VB browser by Geof_xrx (sorry if I spelt it wrong) you can find it in the VB Web Browser thread in the General section
    NXSupport - Your one-stop source for computer help

  7. #7

    Thread Starter
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    Well, here's my first code sample using VB Tool. It's great! I'm getting emotional. Sorry.

    Code:
    Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
      Me.CurrentX = Rnd * Me.ScaleWidth
      Me.CurrentY = Rnd * Me.ScaleHeight
      Me.ForeColor = Rnd * &HFFFFFF
      Me.Print "Out of Stack Space" 'Oops!
      Form_MouseMove Button, Shift, X, Y
    End Sub
    
    'Code improved by vBulletin Tool (Save as...)

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