How to inline custom text in editor

I want to inline comments to source code in Editor. Is it possible to create a region in source code editor to display such comments? The best would be to allow collapse/expand such region.
Any help?

0
5 comments
Avatar
Permanently deleted user

Hello Marek,

I want to inline comments to source code in Editor. Is it possible to
create a region in source code editor to display such comments? The
best would be to allow collapse/expand such region.


Sorry, I don't quite understand what you mean. It is not possible to display
some text directly in the editor which is not present in the underlying document.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Avatar
Permanently deleted user

Exactly.
The use case:
I want to display comments entered by user in code review tool. Comment is not a part of document, but points to some place in document. Is it possible to display such information directly in editor (not gutter) - just distinguished by color, border, something?

0
Avatar
Permanently deleted user

Hello Marek,

No, this is not currently possible via standard APIs. You may be able to
get something done with JLayeredPane hacks or something similar, but this
is of course completely unsupported and will hardly be reliable enough.

Exactly.
The use case:
I want to display comments entered by user in code review tool.
Comment is not a part of document, but points to some place in
document. Is it possible to display such information directly in
editor (not gutter) - just distinguished by color, border, something?

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Hello Dmitry,

I wonder if this is possible with IDEA 15?
I'm looking for something like comments in Upsource (but for regular file, not a diff): 2015-12-13_22-41-37.png

Thank you.

Kind regards,
Daniel Penkin

0
Avatar
Permanently deleted user

Him I have a similar use case (I think). I'd like to represent files within files. Something like the following:

 

File 1:

    <This is File 1>

 

File 2:

    <This is file 2>

    + <File 1>

       (when expanded:)

     - <File 1>

          <This is file 1>

    <This is the end of File 2>

 

I assume this is not possible within the OpenAPI still. Is it something that would be complex to add?

0

Please sign in to leave a comment.