{"action":"created","issue":{"url":"https://api.github.com/repos/TomasMikula/RichTextFX/issues/400","repository_url":"https://api.github.com/repos/TomasMikula/RichTextFX","labels_url":"https://api.github.com/repos/TomasMikula/RichTextFX/issues/400/labels{/name}","comments_url":"https://api.github.com/repos/TomasMikula/RichTextFX/issues/400/comments","events_url":"https://api.github.com/repos/TomasMikula/RichTextFX/issues/400/events","html_url":"https://github.com/TomasMikula/RichTextFX/issues/400","id":190718240,"number":400,"title":"Java Keyword Demo","user":{"login":"WinXaito","id":8223773,"avatar_url":"https://avatars.githubusercontent.com/u/8223773?v=3","gravatar_id":"","url":"https://api.github.com/users/WinXaito","html_url":"https://github.com/WinXaito","followers_url":"https://api.github.com/users/WinXaito/followers","following_url":"https://api.github.com/users/WinXaito/following{/other_user}","gists_url":"https://api.github.com/users/WinXaito/gists{/gist_id}","starred_url":"https://api.github.com/users/WinXaito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WinXaito/subscriptions","organizations_url":"https://api.github.com/users/WinXaito/orgs","repos_url":"https://api.github.com/users/WinXaito/repos","events_url":"https://api.github.com/users/WinXaito/events{/privacy}","received_events_url":"https://api.github.com/users/WinXaito/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-21T13:33:51Z","updated_at":"2016-11-21T17:05:25Z","closed_at":null,"body":"Hello,\r\n\r\nI would like to be able to refresh the \"hightlight\" when opening the file, but with this code, the \"highlight\" is only done after editing the file.\r\n\r\n```\r\ncodeArea.richChanges()\r\n                .filter(ch -> !ch.getInserted().equals(ch.getRemoved()))\r\n                .successionEnds(Duration.ofMillis(100))\r\n                .supplyTask(this::computeHighlightingAsync)\r\n                .awaitLatest(codeArea.richChanges())\r\n                .filterMap(t -> {\r\n                    if(t.isSuccess()) {\r\n                        return Optional.of(t.get());\r\n                    } else {\r\n                        t.getFailure().printStackTrace();\r\n                        return Optional.empty();\r\n                    }\r\n                })\r\n                .subscribe(this::applyHighlighting);\r\n```\r\nThis is the code found in the java keyword demo in Async\r\n\r\nHow can I do this?\r\n\r\nThank you !\r\n\r\n[This text has been translated from a translation site, original language: French]"},"comment":{"url":"https://api.github.com/repos/TomasMikula/RichTextFX/issues/comments/262000639","html_url":"https://github.com/TomasMikula/RichTextFX/issues/400#issuecomment-262000639","issue_url":"https://api.github.com/repos/TomasMikula/RichTextFX/issues/400","id":262000639,"user":{"login":"JordanMartinez","id":8413037,"avatar_url":"https://avatars.githubusercontent.com/u/8413037?v=3","gravatar_id":"","url":"https://api.github.com/users/JordanMartinez","html_url":"https://github.com/JordanMartinez","followers_url":"https://api.github.com/users/JordanMartinez/followers","following_url":"https://api.github.com/users/JordanMartinez/following{/other_user}","gists_url":"https://api.github.com/users/JordanMartinez/gists{/gist_id}","starred_url":"https://api.github.com/users/JordanMartinez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JordanMartinez/subscriptions","organizations_url":"https://api.github.com/users/JordanMartinez/orgs","repos_url":"https://api.github.com/users/JordanMartinez/repos","events_url":"https://api.github.com/users/JordanMartinez/events{/privacy}","received_events_url":"https://api.github.com/users/JordanMartinez/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T17:05:25Z","updated_at":"2016-11-21T17:05:25Z","body":"What have you tried so far?"}}
{"actor":{"display_login":"JordanMartinez"}}