PDA

Click to See Complete Forum and Search --> : code snippets


Mad Compie
Mar 9th, 2001, 02:09 PM
Hi guys, how is it possible that my code snippets are not coloured while others do?
I use the tags "code".

example:


Option Explicit

Sub Form_Load()
'Why isn't this coloured????
End Sub

SteveCRM
Mar 9th, 2001, 05:03 PM
John, James and company took that feature out for some reason....for C++ and languages like it you can use the php tag.. :

#include <iostream.h>

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


or you could use color tags inside the code tags

Mad Compie
Mar 10th, 2001, 06:57 AM
Take look at the folowing thread:
http://forums.vb-world.net/showthread.php?s=&postid=264334#post264334
Do you mean that this message was coded with the color tags?

Fox
Mar 10th, 2001, 07:16 AM
To colorize your code you need a tool, for example my vB Tool (see signature). Or you can edit them by yourself ;)

Mad Compie
Mar 10th, 2001, 07:32 AM
Ok, that's what I was looking for.
Tx for your reactions.

dimava
Mar 10th, 2001, 12:53 PM
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

Mad Compie
Mar 11th, 2001, 04:38 AM
Well, here's my first code sample using VB Tool. It's great! I'm getting emotional. Sorry.


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 (http://orion.spaceports.com/~mccloud/vbtool.zip) (Save as...)