Opening file without opening an editor
Hi,
Is it possible to open a file without opening it in an editor?
I want to programmatically open a file and examine the PSI-tree but also let the user open the file in an editor. For both kinds of opening the file I want to use the same lexer and parser.
Cheers,
Robert
请先登录再写评论。
You should register file type for using custom lexer and parser. The IDE uses the registered file type in both cases.
Get PSI tree without opening file in the editor:
Thanks,
That's what I was looking for.
Cheers,
Robert