{"action":"created","issue":{"url":"https://api.github.com/repos/TomasMikula/RichTextFX/issues/133","labels_url":"https://api.github.com/repos/TomasMikula/RichTextFX/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/TomasMikula/RichTextFX/issues/133/comments","events_url":"https://api.github.com/repos/TomasMikula/RichTextFX/issues/133/events","html_url":"https://github.com/TomasMikula/RichTextFX/issues/133","id":65092239,"number":133,"title":"RichTextFX comment highlight, but how?","user":{"login":"mathiasene","id":4314270,"avatar_url":"https://avatars.githubusercontent.com/u/4314270?v=3","gravatar_id":"","url":"https://api.github.com/users/mathiasene","html_url":"https://github.com/mathiasene","followers_url":"https://api.github.com/users/mathiasene/followers","following_url":"https://api.github.com/users/mathiasene/following{/other_user}","gists_url":"https://api.github.com/users/mathiasene/gists{/gist_id}","starred_url":"https://api.github.com/users/mathiasene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathiasene/subscriptions","organizations_url":"https://api.github.com/users/mathiasene/orgs","repos_url":"https://api.github.com/users/mathiasene/repos","events_url":"https://api.github.com/users/mathiasene/events{/privacy}","received_events_url":"https://api.github.com/users/mathiasene/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-29T20:19:06Z","updated_at":"2015-03-29T20:43:11Z","closed_at":null,"body":"Hello, I'm new to use RichTextFX and I'll like to know how to do it possible to highlight comments. I use the code from JavaKeywords.java.\r\n\r\nHow can I add support for highlightning comments that start with \"//\" or \"/*\" or \";\". It'll be really nice to know how to do that. I'm totally blank there. "},"comment":{"url":"https://api.github.com/repos/TomasMikula/RichTextFX/issues/comments/87473571","html_url":"https://github.com/TomasMikula/RichTextFX/issues/133#issuecomment-87473571","issue_url":"https://api.github.com/repos/TomasMikula/RichTextFX/issues/133","id":87473571,"user":{"login":"TomasMikula","id":433439,"avatar_url":"https://avatars.githubusercontent.com/u/433439?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasMikula","html_url":"https://github.com/TomasMikula","followers_url":"https://api.github.com/users/TomasMikula/followers","following_url":"https://api.github.com/users/TomasMikula/following{/other_user}","gists_url":"https://api.github.com/users/TomasMikula/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasMikula/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasMikula/subscriptions","organizations_url":"https://api.github.com/users/TomasMikula/orgs","repos_url":"https://api.github.com/users/TomasMikula/repos","events_url":"https://api.github.com/users/TomasMikula/events{/privacy}","received_events_url":"https://api.github.com/users/TomasMikula/received_events","type":"User","site_admin":false},"created_at":"2015-03-29T20:43:11Z","updated_at":"2015-03-29T20:43:11Z","body":"JavaKeywords demo uses _regular expressions_ to parse the code. Are you familiar with regular expressions? If you want to extend JavaKeywords with comments, you need to define a regular expression that matches a comment. In the demo, there are already several regular expressions defined for such things as keywords, string literals and different types of parentheses.\r\n\r\nRegular expressions are just one way to do the parsing. It is used in the demo, because it's fairly simple, but you can use whatever parser you want to parse your code. What CodeArea cares about are style ranges that you get out of your parser. In the demo, style ranges are computed by the `computeHighlighting` method."}}