I would like to write a plugin for an editor that allows a view on the data of a file. I.e. the data should not be displayed as they are stored in the file, but there should be a view that abstracts the data and displays it differently. The content should not be changed. So far I have not found a way to implement this. How can this be done?