Skip to content
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

Orion editor - Highlight issue #2078

Closed
lgas opened this issue Aug 9, 2016 · 4 comments
Closed

Orion editor - Highlight issue #2078

lgas opened this issue Aug 9, 2016 · 4 comments
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@lgas
Copy link

lgas commented Aug 9, 2016

Hi,
I coded a Groovy plugin and highlight doesn t working.
I registered my file extension, che recognize it because it opens the "good" editor when i create a .groovy file.

For highlight, i went in org.eclipse.che.ide.api.editor.filetype.ExtensionFileTypeIdentifier, as mentioned in jsonsampleplugin tutorial, for add my extension but saw that Orion already handle it :
this.mappings.put("groovy", Collections.singletonList("text/x-groovy"));

So, for me, it seems to be ok.
What did i miss ?

@ddementieva
Copy link
Contributor

@lgas There is no syntax highlighting for .groovy files in the Orion. You can check it on the Orionhub.

So you may need to add a custom syntax highlighting for this particular file extension, something like #1392

@ddementieva ddementieva added the kind/question Questions that haven't been identified as being feature requests or bugs. label Aug 9, 2016
@lgas
Copy link
Author

lgas commented Aug 10, 2016

Okay thanks you, i ll check that.
But can you explain me what, "this.mappings.put("groovy", Collections.singletonList("text/x-groovy"));" in ExtensionFileTypeIdentifier, is about ?
Is that a preset that will bind my new syntax highlighting with my file extension ?

@ddementieva
Copy link
Contributor

@lgas This mapping will work when Orion adds syntax highlighting for .groovy files.

In the meantime, you need to add a custom syntax highlighting for this file type.

@TylerJewell
Copy link

Closed due to it being resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

3 participants