6

We can define a variable begin with '@' symbol in many languages. I have tried to put a comments for the below question by specifying two '@' variables but I can't. In the nature of the comments section is allowing '@' following some string to specify the person to whom to send the message. If we are specifying more '@' then, it'll not allowing to enter it.

An example: Ruby Array Intersection Issue

1 Answer 1

11

You can add those comments if you place your variables in backticks, like this:

a comment saying: this is a <code>@test</code> <code>@test2</code>

which becomes...

both appear just fine

This appears in our comment formatting, which that 'help' link below the Add Comment button will summarise for you. This is for code markup, which makes it totally appropriate here for mentioning your variables. Try to reserve using it for code markup though.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .