Adding errors / warnings on VirtualFile

How do i add error / warning markers with the matching texts to a VirtualFile? I don't want to create a custom Language implementation or a code inspector - i just have a collection of problematic lines that i need to highlight. Do i need to use ErrorTreeView, and if so - how?

Please sign in to leave a comment.