How do you use Code Tags?
I know this is the Forum Test Area, and I don't know if this post will last or be temporary, but I was testing to see if I could type to show someone how to use Code tags (for beginners).
Anyways, I'm going to link to this thread in my Sig so if a newbie comes across one of my posts, they'll learn something (because honestly, not many people actually search for an read the bbcode format)
[highlight=vb] dim content as string [/highlight]
[highlight=vb.net] dim content as string [/highlight]
[code] dim content as string [/code]
Code:
dim content as string
Re: How do you use Code Tags?
You don't actually need to put spaces in your tags like that in-order to show the tags, just wrap the tags in [noparse] tags and it will allow the tags to appear.
Re: How do you use Code Tags?
Nice! (see, everyone learns something new every day), Imma fix my first post. coz its still a reference
Re: How do you use Code Tags?
Testing [noparse] tag:
[HIGHLIGHT="vb.net"]
Dim a as string
a = "Please wait while I test it !"
[/HIGHLIGHT]
Good to know :thumb:
vb.net Code:
Dim a as string
a = "Please wait while I test it !"
Thanks Night :wave:
Re: How do you use Code Tags?
Or, you can do it without the NOPARSE tags
[highlight=vb]your code goes in here[/highlight]
[code]your code goes in here[/code]
Admittedly I have no idea why you would want to do it this way, but, you can if you want.
Re: How do you use Code Tags?
Quote:
Originally Posted by
Hack
Admittedly I have no idea why you would want to do it this way
Sometimes, it is necessary to show newbies, how to post their code in code/highlight tags. :D
Re: How do you use Code Tags?
Quote:
Originally Posted by Hack
Or, you can do it without the NOPARSE tags
[color=blue][b][[b][/b]highlight=vb][/b][/color][i]your code goes in here[/i][color=blue][b][/[b][/b]highlight][/b][/color]
[b][c[b][/b]ode][/b]your code goes in here[b][/co[b][/b]de][/b]
Seriously?
Code:
Sometimes you want to MAKE THINGS NOTICABLE
in your code window.
[code]Sometimes you want to [color=red][b]MAKE THINGS NOTICABLE[/b][/color]
in your code window.[/code]