-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[javadoc] Replace < > in pre/code tags automatically #960
Comments
Do you mean |
if eclipse-jdt/eclipse.jdt.core#1583 is fixed the javdoc should use |
Snippet is added in Java 18 which means our builds will have to start using Java 21 (first LTS that has support for snippet). IMHO, it's something we should done ASAP. |
I dont understnad what you mean by "specification" maybe something like that that also mention that @, < > and & are special: https://blogs.oracle.com/javamagazine/post/java-javadoc-snippet. Migration to Create a new class, maybe like this:
now add inside the pre tags
on save (for equinox not sure how /what they enabled in the settings to do so!) I end up with:
(see for example https://github.com/eclipse-equinox/equinox/pull/415/files#diff-4ebbd2f0859833c456d338ad6a4afbe98e876ac305ed74b93336c0cb5a1f73fb ) but using
results in
Actually I think regardless of settings special char should always be escaped and of course all of them... |
Today I noticed that JD replaces
@
in javadoc code/pre tags automatically to@
as these needs to be escaped on save the file that is great help already 👍 .Sadly it seem to not do the same for
<
(=<
) and>
(=>
) leading to even JDT is suffering from such faulty javadoc:a similar issue seem to exits with
&
(=&
)FYI @jukzi @akurtakov
The text was updated successfully, but these errors were encountered: