{"action":"created","issue":{"url":"https://api.github.com/repos/icsharpcode/AvalonEdit/issues/71","repository_url":"https://api.github.com/repos/icsharpcode/AvalonEdit","labels_url":"https://api.github.com/repos/icsharpcode/AvalonEdit/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/icsharpcode/AvalonEdit/issues/71/comments","events_url":"https://api.github.com/repos/icsharpcode/AvalonEdit/issues/71/events","html_url":"https://github.com/icsharpcode/AvalonEdit/issues/71","id":105490910,"number":71,"title":"Replacements for AbstractFoldingStrategy and TextMarkerService?","user":{"login":"nadcraker","id":5799503,"avatar_url":"https://avatars.githubusercontent.com/u/5799503?v=3","gravatar_id":"","url":"https://api.github.com/users/nadcraker","html_url":"https://github.com/nadcraker","followers_url":"https://api.github.com/users/nadcraker/followers","following_url":"https://api.github.com/users/nadcraker/following{/other_user}","gists_url":"https://api.github.com/users/nadcraker/gists{/gist_id}","starred_url":"https://api.github.com/users/nadcraker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadcraker/subscriptions","organizations_url":"https://api.github.com/users/nadcraker/orgs","repos_url":"https://api.github.com/users/nadcraker/repos","events_url":"https://api.github.com/users/nadcraker/events{/privacy}","received_events_url":"https://api.github.com/users/nadcraker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-08T23:54:51Z","updated_at":"2016-03-31T09:02:20Z","closed_at":null,"body":"I am attempting to update some code that was built on a previous version of AvalonEdit to the latest version, 5.0.1.0.\r\n\r\nThis older code uses two classes that don't appear to be in the new version. 'AbstractFoldingStrategy' and 'TextMarkerService'. What classes have replaced them?\r\n\r\nThis is a code sample\r\n```C#\r\nAbstractFoldingStrategy foldingStrategy;\r\nfoldingStrategy = new BraceFoldingStrategy();\r\nfoldingStrategy.UpdateFoldings(foldingManager, textEditor.Document);\r\nfoldingStrategy.UpdateFoldings(foldingManager, textEditor.Document);\r\n```\r\n\r\n```C#\r\nTextMarkerService textMarkerService;\r\ntextMarkerService = new TextMarkerService(this.textEditor.Document);\r\ntextEditor.TextArea.TextView.BackgroundRenderers.Add(textMarkerService);\r\ntextView.LineTransformers.Add(textMarkerService);\r\ntextView.Services.AddService(typeof(ITextMarkerService), textMarkerService);\r\ntextMarkerService.RemoveAll();\r\nvar m = textMarkerService.Create(startOffset, length);\r\n```"},"comment":{"url":"https://api.github.com/repos/icsharpcode/AvalonEdit/issues/comments/203834065","html_url":"https://github.com/icsharpcode/AvalonEdit/issues/71#issuecomment-203834065","issue_url":"https://api.github.com/repos/icsharpcode/AvalonEdit/issues/71","id":203834065,"user":{"login":"VladD2","id":771101,"avatar_url":"https://avatars.githubusercontent.com/u/771101?v=3","gravatar_id":"","url":"https://api.github.com/users/VladD2","html_url":"https://github.com/VladD2","followers_url":"https://api.github.com/users/VladD2/followers","following_url":"https://api.github.com/users/VladD2/following{/other_user}","gists_url":"https://api.github.com/users/VladD2/gists{/gist_id}","starred_url":"https://api.github.com/users/VladD2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladD2/subscriptions","organizations_url":"https://api.github.com/users/VladD2/orgs","repos_url":"https://api.github.com/users/VladD2/repos","events_url":"https://api.github.com/users/VladD2/events{/privacy}","received_events_url":"https://api.github.com/users/VladD2/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T09:02:20Z","updated_at":"2016-03-31T09:02:20Z","body":"I have the same problem. What can replace AbstractFoldingStrategy?"}}