I added couple file types to code.php like".py" etc. Now I can see them in the tree list however they are not clickable and it says that they are "unknown" types. How can I edit custom file types?
thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In 0.4.x this should be done in code/tree/type.php. You should add a code block before the else, essentially copying and editing the else-if blocks before it. The ext_clean should be what editarea supports for python (on their website, they state that they do support Python, however I am unsure what should be passed as type). The file_action should be edit, and the file_icon should be x in skin/one/design/icon_x.php .
In 0.5 this will be simplified (and we will switch to CodeMirror), we should be able to release a beta somewhere in the next weeks. In 0.6 I aim to implement some extendible filetypes-actions functionality, so possible filetypes and actions can be defined easily and linked to eachother. In the meantime, I will add support for python in 0.5.
Kind Regards,
Wim Tibackx
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I added couple file types to code.php like".py" etc. Now I can see them in the tree list however they are not clickable and it says that they are "unknown" types. How can I edit custom file types?
thanks
Hi,
In 0.4.x this should be done in code/tree/type.php. You should add a code block before the else, essentially copying and editing the else-if blocks before it. The ext_clean should be what editarea supports for python (on their website, they state that they do support Python, however I am unsure what should be passed as type). The file_action should be edit, and the file_icon should be x in skin/one/design/icon_x.php .
In 0.5 this will be simplified (and we will switch to CodeMirror), we should be able to release a beta somewhere in the next weeks. In 0.6 I aim to implement some extendible filetypes-actions functionality, so possible filetypes and actions can be defined easily and linked to eachother. In the meantime, I will add support for python in 0.5.
Kind Regards,
Wim Tibackx
Hi wimtibackx
Thanks for your help. I was able to enable basic editing for those formats with your answer
thanks again
Hi vehakki,
I'm very glad to hear that. Once again, I'll repeat that I'm aiming to release the next version in about 2 to 4 weeks.
Kind Regards,
Wim
Hey Wim, thanks for the update. I am definitely looking for the new beta