SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Site Related Forums
 Site Related Discussions
 How to escape square brackets?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sunitabeck
Flowing Fount of Yak Knowledge

5155 Posts

Posted - 04/23/2012 :  10:14:03  Show Profile  Reply with Quote
How do you escape square brackets when posting?

I want to tell this poster to use the code tags to post tabular data to make it easier to discern where data for one column ends and data for the next begins.

For the life of me, I can't figure out how to make it display a left square bracket followed by the word "code" followed by a right square bracket.

robvolk
Most Valuable Yak

USA
15681 Posts

Posted - 04/23/2012 :  10:22:39  Show Profile  Visit robvolk's Homepage  Reply with Quote
The trick I learned was to enclose the first bracket in a color tag:

[code]

If you reply with quote you'll see the markup.
Go to Top of Page

webfred
Flowing Fount of Yak Knowledge

Germany
8766 Posts

Posted - 04/23/2012 :  10:30:20  Show Profile  Visit webfred's Homepage  Reply with Quote
I use [C0DE] (it is a zero instead of the big O)


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

sunitabeck
Flowing Fount of Yak Knowledge

5155 Posts

Posted - 04/23/2012 :  11:33:22  Show Profile  Reply with Quote
quote:
Originally posted by robvolk

The trick I learned was to enclose the first bracket in a color tag:

[code]

If you reply with quote you'll see the markup.

Ha! Would have never figured that. Thanks Rob.

Fred, I think I will go with the color thing. Zero is nice, but I wouldn't misunderestimate(*) people's ability to copy that exactly as it is and use it with the zero in place.

(*) Yeah, yeah, I know. But I like that expression. It conveys the meaning so effectively and succinctly, just like a piece of well-written SQL query.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 04/23/2012 :  12:17:20  Show Profile  Reply with Quote
quote:
Originally posted by sunitabeck

quote:
Originally posted by robvolk

The trick I learned was to enclose the first bracket in a color tag:

[code]

If you reply with quote you'll see the markup.

Ha! Would have never figured that. Thanks Rob.

Fred, I think I will go with the color thing. Zero is nice, but I wouldn't misunderestimate(*) people's ability to copy that exactly as it is and use it with the zero in place.

(*) Yeah, yeah, I know. But I like that expression. It conveys the meaning so effectively and succinctly, just like a piece of well-written SQL query.


A new word added to my vocabulary


------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

sunitabeck
Flowing Fount of Yak Knowledge

5155 Posts

Posted - 04/23/2012 :  12:26:42  Show Profile  Reply with Quote
quote:

A new word added to my vocabulary

It is VERY politically charged though, so I would be very careful using it! I used it here only because I felt confident enough that both Rob and Fred are people who would not take offense regardless of their political persuasions.
Go to Top of Page

robvolk
Most Valuable Yak

USA
15681 Posts

Posted - 04/23/2012 :  12:30:46  Show Profile  Visit robvolk's Homepage  Reply with Quote
Misunderestimate? How is that political? I might complain about poor English, but only if I'm in a really bad mood already.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 04/23/2012 :  12:47:39  Show Profile  Reply with Quote
quote:
Originally posted by sunitabeck

quote:

A new word added to my vocabulary

It is VERY politically charged though, so I would be very careful using it! I used it here only because I felt confident enough that both Rob and Fred are people who would not take offense regardless of their political persuasions.


Is it because this that you say its politically charged?

http://news.bbc.co.uk/2/hi/7809160.stm

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

sunitabeck
Flowing Fount of Yak Knowledge

5155 Posts

Posted - 04/23/2012 :  12:50:10  Show Profile  Reply with Quote
quote:
Originally posted by robvolk

Misunderestimate? How is that political? I might complain about poor English, but only if I'm in a really bad mood already.

http://en.wikipedia.org/wiki/Bushism

But I honestly like that word. It is an amalgamation of miscalculate, underestimate and many other subtle thoughts. There is nothing that comes close to the expressiveness of misunderestimate! Just like there is no equivalent in English language for "Schadenfreude"

Even though I am a non-political person, I have been trained well by my colleagues - all of them are staunchly on one side of the political spectrum. I won't say which side
Go to Top of Page

Transact Charlie
Flowing Fount of Yak Knowledge

United Kingdom
3451 Posts

Posted - 04/23/2012 :  17:19:51  Show Profile  Visit Transact Charlie's Homepage  Reply with Quote
I liked it better before I found out that it comes from the big 'W'

Charlie
===============================================================
Msg 3903, Level 16, State 1, Line 1736
The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION
Go to Top of Page

madhivanan
Premature Yak Congratulator

India
22769 Posts

Posted - 04/24/2012 :  06:01:32  Show Profile  Send madhivanan a Yahoo! Message  Reply with Quote
Reply with quote and see what I used
[[code]

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

webfred
Flowing Fount of Yak Knowledge

Germany
8766 Posts

Posted - 04/24/2012 :  06:55:57  Show Profile  Visit webfred's Homepage  Reply with Quote
quote:
Originally posted by madhivanan

Reply with quote and see what I used
[[code]

Madhivanan

Failing to plan is Planning to fail


haha - good!



No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

sunitabeck
Flowing Fount of Yak Knowledge

5155 Posts

Posted - 04/24/2012 :  07:21:07  Show Profile  Reply with Quote
quote:
Originally posted by madhivanan

Reply with quote and see what I used
[[code]

Madhivanan

Failing to plan is Planning to fail

What is special about spoiler? Is that a keyword? I tried
[SunitaIsTheBest][[/SunitaIsTheBest][code]
That didn't work. May be it is my conjecture that is wrong.
Go to Top of Page

webfred
Flowing Fount of Yak Knowledge

Germany
8766 Posts

Posted - 04/24/2012 :  07:45:40  Show Profile  Visit webfred's Homepage  Reply with Quote
In Madhi's solution there is closing ] missing and because of this the[[code] isn't parsed.
The SPOILER is used to hide the opening bracket.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.11 seconds. Powered By: Snitz Forums 2000