Search code examples
angular-uiace-editor

How do I disable specific markers in Ace Editor?


I am using ace-editor with the angular-ui-ace directive in my angular project. I need to remove specific markers (such as 'missing !DOCTYPE) from my session. How do I do it?


Solution

  • See https://github.com/ajaxorg/ace/blob/v1.1.8/lib/ace/mode/html_worker.js#L40. you can set error type for errors you want to ignore to "none", or even add an api similar to https://github.com/ajaxorg/ace/blob/v1.1.8/lib/ace/mode/css_worker.js#L61 to customize disabled errors.