Setting setSearchExpression for Burps' Message Editor
I'm making an extension where I have to show markers or found string in response. I prefer not to use the IScanner of Burp rather want to use the setSearchExpression of the TextEditor to highlight in response. But the thing is that while using the Message Editor of burp, it shows that there is an error 'burp.q9i' object has no attribute 'setSearchExpression'
self._responseViewer = self._callbacks.createMessageEditor(self, False)
Please let me know what error I'm making from my side
Do you have a public GitHub repository I can take a look at to see a bit more of your code?
The full list of extender documentation can be found here: https://portswigger.net/burp/extender/api/index.html (as I’m sure you are aware)
Would you be able to set the text for ITextEditor to display the contents of what you would want to find in the IMessageEditor? That way you could have the same contents, but with the setSearchExpression() function.