how do i explain to noobs

Reply

Join Date: Feb 2008
Posts: 1,632
Reputation: jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of 
Solved Threads: 122
jephthah's Avatar
jephthah jephthah is offline Offline
Posting Virtuoso

how do i explain to noobs

 
0
  #1
Apr 22nd, 2009
how to use [code] tags?

specifically, how do i type the opening and closing code tags in my post, as an example, without causing the code tags to activate?

like this:


HEY NOOB! USE CODE TAGS, AIGHT???

<code=c>
int main(void)
{
// your noob code here
return 0;
}
</code>
with [ square ] instead of < angle > brackets of course.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,760
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 332
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: how do i explain to noobs

 
0
  #2
Apr 22nd, 2009
Use [code = php]
[/code]
Without a space on either side of = .
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 1,175
Reputation: stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light 
Solved Threads: 125
Featured Poster
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Veteran Poster

Re: how do i explain to noobs

 
1
  #3
Apr 22nd, 2009
Without a space on either side of =
Used to do the same before Peter_Budo told me about the noparse tags.

You can use the noparse tags around your code block like this :-

[noparse]
[code=xyz]
[/code]

[/noparse]

You can read more about the various vB tags here.
Last edited by stephen84s; Apr 22nd, 2009 at 4:34 am.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"How to ask questions the smart way ?"
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,760
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 332
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: how do i explain to noobs

 
0
  #4
Apr 22nd, 2009
Originally Posted by stephen84s View Post
Used to do the same before Peter_Budo told me about the noparse tags.

You can use the noparse tags around your code block like this :-

[noparse]
[code=xyz]
[/code]

[/noparse]

You can read more about the various vB tags here.
Thanks! I didn't know about [noparse] tags.
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5,051
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker

Re: how do i explain to noobs

 
7
  #5
Apr 23rd, 2009
The only problem with explaining the usage of noparse tags is that it becomes somewhat cumbersome to explain the exact usage of the noparse tags themselves. For example, consider the following:

Use noparse tags like this:
[noparse] [code] code goes here [/code] [/noparse]
The above example was created by using two nested levels of noparse tags. But that's so dull and boring! Some bbcode formatting would help make our theoretical explanation clearer. The problem is of course, you can't put bbcode formatting inside a noparse tag because of the very nature of a noparse tag. Therefore, we have to resort to a little bit of bbcode black magic. Using the fact that [some[b][/b]tag] will be parsed into [sometag], we can quickly see that we can implement the same intended functionality of noparse while still being able to selectively enable the bbcode parser.

Thus, we can write the following in our post:
[no[b][/b]parse] [b][co[b][/b]de=[col[b][/b]or="red"]c[/color]][/b] [inlinecode]code goes here[/inlinecode] [b][/code][/b] [/noparse]

Which parses down nicely to become:
[noparse] [code=c] code goes here [/code] [/noparse]
There. Now you can with confidence explain to other people not only how to use code tags, but how to clearly use noparse tags with full bbcode formatting.
"Technological progress is like an axe in the hands of a pathological criminal."

All my posts may be freely redistributed under the terms of the MIT license.
Reply With Quote Quick reply to this message  
Join Date: Feb 2004
Posts: 2,200
Reputation: GrimJack will become famous soon enough GrimJack will become famous soon enough 
Solved Threads: 15
Featured Poster
GrimJack's Avatar
GrimJack GrimJack is offline Offline
Nearly a Posting Maven

Re: how do i explain to noobs

 
0
  #6
Apr 23rd, 2009
I am getting a head ache.
Imagine a world without hypotheticals....
You can have my book when you pry it from my cold, dead fingers.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,484
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 517
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: how do i explain to noobs

 
0
  #7
Apr 24th, 2009
And if you don't like having to type so much to yell at the noobs, the Clippings add-on for Firefox can it effortless
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Geeks' Lounge Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC