Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Site Related Forums
 Site Related Discussions
 How to escape square brackets?

Author  Topic 

sunitabeck
Master Smack Fu Yak Hacker

5155 Posts

Posted - 2012-04-23 : 10:14:03
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

15732 Posts

Posted - 2012-04-23 : 10:22:39
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
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2012-04-23 : 10:30:20
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
Master Smack Fu Yak Hacker

5155 Posts

Posted - 2012-04-23 : 11:33:22
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

52326 Posts

Posted - 2012-04-23 : 12:17:20
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
Master Smack Fu Yak Hacker

5155 Posts

Posted - 2012-04-23 : 12:26:42
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

15732 Posts

Posted - 2012-04-23 : 12:30:46
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

52326 Posts

Posted - 2012-04-23 : 12:47:39
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
Master Smack Fu Yak Hacker

5155 Posts

Posted - 2012-04-23 : 12:50:10
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
Master Smack Fu Yak Hacker

3451 Posts

Posted - 2012-04-23 : 17:19:51
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

22864 Posts

Posted - 2012-04-24 : 06:01:32
Reply with quote and see what I used
[spoiler][[/spoiler][code]

Madhivanan

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

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2012-04-24 : 06:55:57
quote:
Originally posted by madhivanan

Reply with quote and see what I used
[spoiler][[/spoiler][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
Master Smack Fu Yak Hacker

5155 Posts

Posted - 2012-04-24 : 07:21:07
quote:
Originally posted by madhivanan

Reply with quote and see what I used
[spoiler][[/spoiler][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
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2012-04-24 : 07:45:40
In Madhi's solution there is closing ] missing and because of this the[spoiler][[/spoiler][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
   

- Advertisement -