How to register an editor/Component for ".txt" file node?

hello, i am going to develop a component for my file type ".sas". After double the file node in the project tree, i want to show my component just like showing a java file in an code editor.
How can i do that?

3 comments

Or Can i create a component in the editor area and it wont link to any fileType only?

0

Right now the editors are not "pluggable". The only flexibility one has is to create a custom file
type, which is limited. However, you can hook into an existing editor and, if it is for a specific
file type, add actions, special coloring, and so forth.

andyfai wrote:

Or Can i create a component in the editor area and it wont link to any fileType only?


--

Erb

==============================================================
"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
- Larry Wall
==============================================================

0

See FileEditorProvider in OpenAPI.

Implement accept method - this method have in parameters virtual file of
IDEa and may look like:


Next, implement FileEditor.

You can see at ImageEditor plugin how to do this.

Thanks!

"andyfai" <no_mail@jetbrains.com> wrote in message
news:31079116.1066121630716.JavaMail.itn@is.intellij.net...

Or Can i create a component in the editor area and it wont link to any

fileType only?


0

Please sign in to leave a comment.