tags:

views:

270

answers:

4

How can I escape the @ symbol in javadoc? I am trying to use it inside a {@code} tag which is inside pre tags. I already tried the html escape & #64; sequence but that didn't work.

A: 

Have you tried \@?

MeDiCS
yes- when I do that the slash is shown - \@
JayL
@JayL: It's not a slash, it's a *backslash*. Not that I think that's why it didn't work. :-)
T.J. Crowder
ok, ok - the backslash is shown :)
JayL
A: 

You got the general idea, try using the octal representation: @

Yuval A
+2  A: 

@

http://forums.sun.com/thread.jspa?threadID=729598

Frank V
this works fine with java6 but not with java5
Santhosh Kumar T
A: 

Hey! Thank you for your answers.
Just to add a side note to the problem:

If you want to keep the identation from going away when you see your javadoc in a browser, instead of using the {@code } block you must use <pre> {@code } </pre>.

CumpZ

João Dias Amaro