LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > LinuxQuestions.org > LQ Suggestions & Feedback
User Name
Password
LQ Suggestions & Feedback Do you have a suggestion for this site or an idea that will make the site better? This forum is for you.
PLEASE READ THIS FORUM - Information and status updates will also be posted here.

Notices

Reply
 
LinkBack Search this Thread
Old 08-02-2009, 06:44 PM   #1
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 573

Rep: Reputation: 61
Standard way of telling people about CODE tags?


I have a hard time explaining CODE tags sometimes because I need to do stuff like <CODE> but with [ instead of <, etc. Is there just a thread somewhere that I can link to, a simple CODE tag howto? Or is there a way I can display the tag (I've tried things like \[CODE])
 
Old 08-02-2009, 07:14 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Blog Entries: 33

Rep: Reputation: 143Reputation: 143
Hi, you should be able to explain your case by turning off BB code, and smilies etc.

see below, you can change the config for the post by using the advanced editing display.

Just for that post, I think!

hope this helps.

regards Glenn
 
Old 08-02-2009, 07:41 PM   #3
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 573

Original Poster
Rep: Reputation: 61
Oh, good point, I guess I never noticed because I turned off the formatting controls.
 
Old 08-02-2009, 08:29 PM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Blog Entries: 33

Rep: Reputation: 143Reputation: 143
Just been checking the pages here at LQ....

ref. How_to_Create_design_a_LinuxAnswer

Quote:
Some ideas for the body and construction

In the body it is likely you will come across at least 1 point where you will describe a command. The use of the BB/VB codes can be appropriate for such an occasion. These codes can be found in the FAQ of the site, or
some common ones include:
* [ b ] [ /b ] for bolding
* [ i ] [ /i ] for italics
* [ code ] [ /code ] For presenting the lines in the same order/line and tabbing that would be presented on the users screen, such as a set of commands in a terminal (this will be very benificial for presenting lines of output as well)
* [ quote ] [ /quote ] for presenting quotes, you can give credit where credit is due this way, as well as break out a point of a paragraph to show importance where bold might not be enough.

All of the above examples have spaces between the brackets and the first character of the code, this is to show you the code without actually using it, as it would be parsed accordingly if I didn't space it. You will of course remove the spaces in your own articles so the coding will be used properly. See the FAQ mentioned above for more info on BB/VB code.
the point being....

All of the above examples have spaces between the brackets and the first character of the code, this is to show you the code without actually using it...

Maybe you/we could use that to guide others with an explanation about the space.

cheers, Glenn
 
Old 08-02-2009, 08:31 PM   #5
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 573

Original Poster
Rep: Reputation: 61
I think I'll just put a link to that in my signature and point people to the link when necessary.
 
Old 08-03-2009, 06:50 AM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 229Reputation: 229Reputation: 229
2 things, I hope both are helpful:

1st, there is a better link to BB code info.:
http://www.linuxquestions.org/questi....php?do=bbcode
(It can be found at the bottom of every?/most? page(s) on LQ in the "Posting Rules" box)

2nd, try the [noparse] / [/noparse] tags. (If you want a chuckle look at the source for the last sentence; better yet, encode it in a post. )
 
Old 08-03-2009, 09:26 AM   #7
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Blog Entries: 33

Rep: Reputation: 143Reputation: 143
Excellent link.

Last edited by GlennsPref; 08-03-2009 at 10:44 AM.
 
Old 08-03-2009, 09:40 AM   #8
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 9,110

Rep: Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401
As archtoad6 pointed out, the noparse tag should do what you're looking for:

[code]foo[/code]

--jeremy
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: W3C Multimodal Standard Brings Web to More People, More Ways LXer Syndicated Linux News 0 02-11-2009 07:00 AM
What are code tags? southsibling LQ Suggestions & Feedback 14 11-25-2008 09:08 AM
CODE tags in quick reply colucix LQ Suggestions & Feedback 2 05-02-2008 09:41 AM
'line numbers' option in [code] tags nadroj LQ Suggestions & Feedback 6 04-15-2007 05:39 PM
LXer: Using tags to browse through source code LXer Syndicated Linux News 0 01-31-2007 10:54 PM


All times are GMT -5. The time now is 10:40 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration