Can't the header of the [Highlight=VB] tag be changed to [CODE].
This forum have grown far beyond VB only, and it look kinda silly if one put some C# code, for example, in a block that are Marked "VB Code"
Printable View
Can't the header of the [Highlight=VB] tag be changed to [CODE].
This forum have grown far beyond VB only, and it look kinda silly if one put some C# code, for example, in a block that are Marked "VB Code"
Are you using IE or Firefox? There is a tool for each that lets you right click on text and format it in many different ways. I'm sure somebody else wil will give you a link, but I think MartinLiss has one in his sig for IE.
That's how we do THIS!!!!!!!!!!!!!!!!!!
The vbcode tags are a special hack added in by some of the developers at JupitorMedia.
Since they had such a hard time with the upgrade and the vbcode tags I doubt it that they will risk making any
more modifications to it :(, but it doesnt hurt to ask.
Code:
-----------------------------------------
Private Sub Form_Load()
'Blah, blah, blah...
End Sub
-----------------------------------------
;)
hmmm....I think I did not make myself clear enough
I mean this look a bit funny
[VB Code:
/* in here I got c# code... * not vb code as the tag suggest */
Oh, thanx Rob, you answered while I was replying myself
Nevermind...of course this is not a problem...just thought about it
:)
dglienna, did you read the post completely? Hes not asking how to color the code but rather the "Visual Basic Code:" description before the actual code.Quote:
Originally Posted by dglienna
We shall see what Martin thinks about it since it is a valid point. He usually is quite good at replying toQuote:
Originally Posted by StrangerInBeijing
posts in the Feedbak Forum in a timely mannor. :thumb:
Hey Rob,
Just thought I would ask while we are here, as I always wondered...
PPL like you, Martin, Rob, NoteMe, Mendhak (cute couple the latter), etc, etc seems to be on this forums 24/7. You guys do this for a living? Got other work, but time for this? Lots of Money, and no Life? (no offence hey)..... Just curious...You seems to be everywhere, all the time...are you even one person??
Cheers
:lol: No we are all separate people.Quote:
Originally Posted by StrangerInBeijing
Most of us have a job or go to school but I leave the site up all day so when I need to search or post a thread I dont have to wait.
I believe Martin may be retired. I am back on the site at home off and on as I have allot of work to do remodeling my house.
So I guess not too much of a life, but I did get out last Sunday to go to a Ford Mustang car show (got sun taned while walking around). :D
Hopefully it wont take too much of a change to make it Code: and not VB Code:.
But then the issue of the actual code tag text. [Code][/Code] would conflict with the current code tag so
it may have to remain the same [VBCode][/VBCode] tags just with a different header.
lol..thanx 4 sharing
hope to know enough by winter to live off the site as well. No way i'm going anywhere during the winter here...they got this....what's it called again.....snow??? Huh uh.....I'm from Africa, and aint putting a foot in that stuff.
anycase, i will shurrup now...see what Granpa Martin (Kidding pop) got to say.
Cheers
I was referring to the options in the add-on's
Here is the one for C++ code. There is also PHP and VB
It adds the color codes automatically
Code:/* in here I got c# code... * not vb code as the tag suggest */
What about the CODE tags?
Coloring the Language Syntax is not that importantCode:/* in here I got c# code... * not vb code as the tag suggest */
I'm retired :)Quote:
Originally Posted by StrangerInBeijing
Well then why didnt you show an example of that instead of rainbow coloring?Quote:
Originally Posted by dglienna
I dont see any syntax coloring for your C# example code you posted? Only grey comments.
How about a decent example?
Martin, how about changing the vb code tag header description?
Cool....that's what I wanna do when I retire....write code somewhere on a game farm back home! :bigyello:
Don't know exaclty what you guys meant witht that tags, but will see as soon I can stop this c# running out my ears (been throug 8 chapters in 24 hours!!!!) :)
Found some C++ code. Let's see if it works, even...
I found the link that I was looking for:Code:type va_arg(
va_list arg_ptr,
type
);
void va_end(
va_list arg_ptr
);
void va_start(
va_list arg_ptr
); (UNIX version
)
void va_start(
va_list arg_ptr,
prev_param
); (ANSI version
)
Here is the code formatting tool that some of us have:
http://www.vbforums.com/showthread.php?t=225306
uuuuh...seems mine does not preserve the indenting??
Code:staticvoid Main(string[] args)
{
try
{
Entrance();
}
catch (Exception caught)
{
Console.WriteLine(caught.Message);
}
}
I'm not totally sure I follow what is being asked.....
There are currently three different coding tags on this site. VBCode colors for VB syntax. PHP colors for PHP code, and Code is a generic tag for everything else.
If you are doing C++, C# or some other language, then the best solution is to use a third party coloring tool that marks your code with the vBulletin color tags. You then post this into the Code tag. References have been made in this thread to some tools. There are also several very good ones on CodeGuru that let you simply copy something to and from the clipboard and the color tags are added. We'll see if we can find links to some of these to post here.
Brad!
Yves, one of the moderators, posted his code for coloring code. He even wrote an article about it. You can find it here:
Coloring Your Code in vBulletin Posts
As mentioned, this is just one of many tools available.
Brad!
Quote:
Originally Posted by StrangerInBeijing
I posted a link in #17