Menu

Unknown files?

Help
denyo
2011-11-29
2013-04-29
  • denyo

    denyo - 2011-11-29

    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

     
  • Wim Tibackx

    Wim Tibackx - 2011-11-29

    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

     
  • denyo

    denyo - 2011-11-30

    Hi wimtibackx

    Thanks for your help. I was able to enable basic editing for those formats with your answer

    thanks again

     
  • Wim Tibackx

    Wim Tibackx - 2011-11-30

    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

     
  • denyo

    denyo - 2011-12-01

    Hey Wim, thanks for the update. I am definitely looking for the new beta

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.