eclipse / tm4e

TextMate support in Eclipse IDE
https://projects.eclipse.org/projects/technology.tm4e
Eclipse Public License 2.0
79 stars 54 forks source link

feat: add option to display TextMate token info in hover #752

Closed sebthom closed 2 months ago

sebthom commented 2 months ago

This PR adds the ability to show the type and scopes of TextMate tokens in a hover which is useful when developing TM themes and needing to style specific elements.

image image

angelozerr commented 2 months ago

It is a fantastic feature! Please note that vscode provides this features too https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide#textmate-tokens-and-scopes andit display another relevant information

image

And vscode manage this popup with the cursor, if you change the cursor the popup is refreshed,I think it is better than hover but I don't know if it is easy to do that in Eclipse IDE.

sebthom commented 2 months ago

@angelozerr We currently don't have all this information available. However, I added a second commit that extends the hover like this:

image

angelozerr commented 2 months ago

Thanks @sebthom for your improvement.

I suggest that you write a doc about this great feature