{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/che/issues/11842","repository_url":"https://api.github.com/repos/eclipse/che","labels_url":"https://api.github.com/repos/eclipse/che/issues/11842/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/che/issues/11842/comments","events_url":"https://api.github.com/repos/eclipse/che/issues/11842/events","html_url":"https://github.com/eclipse/che/issues/11842","id":377677606,"node_id":"MDU6SXNzdWUzNzc2Nzc2MDY=","number":11842,"title":"Adding Syntax Highlighting to Xtext DSL in Eclipse Che","user":{"login":"SharkJ","id":23653853,"node_id":"MDQ6VXNlcjIzNjUzODUz","avatar_url":"https://avatars1.githubusercontent.com/u/23653853?v=4","gravatar_id":"","url":"https://api.github.com/users/SharkJ","html_url":"https://github.com/SharkJ","followers_url":"https://api.github.com/users/SharkJ/followers","following_url":"https://api.github.com/users/SharkJ/following{/other_user}","gists_url":"https://api.github.com/users/SharkJ/gists{/gist_id}","starred_url":"https://api.github.com/users/SharkJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SharkJ/subscriptions","organizations_url":"https://api.github.com/users/SharkJ/orgs","repos_url":"https://api.github.com/users/SharkJ/repos","events_url":"https://api.github.com/users/SharkJ/events{/privacy}","received_events_url":"https://api.github.com/users/SharkJ/received_events","type":"User","site_admin":false},"labels":[{"id":192367931,"node_id":"MDU6TGFiZWwxOTIzNjc5MzE=","url":"https://api.github.com/repos/eclipse/che/labels/kind/question","name":"kind/question","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-06T03:26:43Z","updated_at":"2018-11-07T09:15:58Z","closed_at":null,"author_association":"NONE","body":"I have created a simple 'Hello World' DSL using Xtext with the following grammar: -\r\n\r\n```\r\ngrammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.common.Terminals\r\n\r\ngenerate myDsl \"http://www.xtext.org/example/mydsl/MyDsl\"\r\n\r\nModel:\r\n    greetings+=Greeting*;\r\n\r\nGreeting:\r\n    'Hello' name=ID '!';\r\n```\r\nWhen I create it as an Eclipse plugin and run as an Eclipse Application, everything works fine; syntax highlighting, auto completion works fine. However, when I create it as a Gradle build with Fat Jar, and implement the Fat jar into Eclipse Che as a sidecar (by pushing a dockerfile with the fat jar embedded in it into Docker Hub), syntax highlighting does not work as expected. However, the editor understands the language. I know this because it provides auto-completion support and underlines in red when I type syntactically wrong statements.\r\n\r\nThe statements do not have a colour variation at all. It looks like a simple .txt file. Is there a possible way to include syntax highlighting to my DSL when it is running in Eclipse Che?\r\n\r\nThanks in advance!"},"comment":{"url":"https://api.github.com/repos/eclipse/che/issues/comments/436556733","html_url":"https://github.com/eclipse/che/issues/11842#issuecomment-436556733","issue_url":"https://api.github.com/repos/eclipse/che/issues/11842","id":436556733,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjU1NjczMw==","user":{"login":"SharkJ","id":23653853,"node_id":"MDQ6VXNlcjIzNjUzODUz","avatar_url":"https://avatars1.githubusercontent.com/u/23653853?v=4","gravatar_id":"","url":"https://api.github.com/users/SharkJ","html_url":"https://github.com/SharkJ","followers_url":"https://api.github.com/users/SharkJ/followers","following_url":"https://api.github.com/users/SharkJ/following{/other_user}","gists_url":"https://api.github.com/users/SharkJ/gists{/gist_id}","starred_url":"https://api.github.com/users/SharkJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SharkJ/subscriptions","organizations_url":"https://api.github.com/users/SharkJ/orgs","repos_url":"https://api.github.com/users/SharkJ/repos","events_url":"https://api.github.com/users/SharkJ/events{/privacy}","received_events_url":"https://api.github.com/users/SharkJ/received_events","type":"User","site_admin":false},"created_at":"2018-11-07T09:15:58Z","updated_at":"2018-11-07T09:15:58Z","author_association":"NONE","body":"Hi,\r\nIs there a way to implement syntax highlighting support for the new file type of my DSL? Since Che is using Orion Editor's support for Syntax colouring, could you please tell me how I should implement the function that I require. Though I found similar issues when I searched a solution for this, there was no clear method provided to implement it.\r\nYour help is greatly appreciated.\r\nThanks!"}}
{"actor":{"display_login":"SharkJ"}}