JavaScript Javadoc doesn't generated properly when inside <script></script>

See images attached when I type "/**" (1.png) and press Enter (2.png) for JS function inside ..]]> block: the comment block is generated in the wrong place.

Also: "/" + Enter works bad as well since it's not supported same as "/" + Enter - but may be for JavaScript "/" + Enter may be supported same way as "/**" + Enter ?



Attachment(s):
2.png
1.png
6 comments
Comment actions Permalink

Here how "/*" + Enter looks like in the last build



Attachment(s):
1.png
2.png
0
Comment actions Permalink

If reformating JS fragment produces content aligned to the start of the
script tag then this is known formatter problem

Evgeny Goldin wrote:

See images attached when I type "/**" (1.png) and press Enter (2.png) for JS function inside <script type="text/javascript">..</script> block: the comment block is generated in the wrong place.

Also: "/" + Enter works bad as well since it's not supported same as "/" + Enter - but may be for JavaScript "/" + Enter may be supported same way as "/**" + Enter ?


------------------------------------------------------------------------


------------------------------------------------------------------------


--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

How about this (see images) ? This time the code is inside external *.js file and not inside ]]> block



Attachment(s):
1.png
2.png
0
Comment actions Permalink

I mean - I would expect it to be this



Attachment(s):
3.png
0
Comment actions Permalink

The first pair of images matches your description. But the second one ("/*" + Enter) shows a completely another problem ..

0
Comment actions Permalink

I suppose your description matches this problem as well. So it's only "/*" + Enter case that is left

0

Please sign in to leave a comment.