Viewing MATLAB source code (.m) within Web App

It seems the MATLAB source code, i.e., *.m file, cannot preview online.
It would be good if we could specify what file format can be opened as the text file.

1 Like

You can edit the section PREVIEW_FILEEXT in seahub/seahub/utils/ and restart seahub. Done

Thanks and that works.

It still would be good if it allows user to append extra file format in a standard conf file, which can be preserved over seafile upgrade.

Yes, that whould be niice, I agree !
Because If we update Seafile, the conf will be lost.

1 Like