Forums | Mahara Community
Create a framework file for SmartEvidence
05 January 2017, 13:02
I would like to create a new framework file based on the example framework from the wiki. How can I edit the .matrix file? Is there a specific editor I can use? I try to use JSON editor online (http://www.jsoneditoronline.org). However when I save the file the extension will change into .json format. How can I save it as a .matrix file? Or do I need to use a different editor?
05 January 2017, 14:48
I haven't tried using a JSON editor for creating the file. Generally, I just use Atom and made a change in the config file so it maps .matrix files (which only exist in Mahara) to .json in order for me to get the syntax highlighting. I paste the config change below in case you want to use that editor. Other than that, any plain text editor would suffice.
If you want to your the online editor, you can save the file in .json and rename it to .matrix after the fact in your file browser.
In case you haven't seen it yet, http://manual.mahara.org/en/16.10/administration/smartevidence.html#start-of-the-file describes the individual elements of the file.
If using Atom and you want to have JSON syntax highlighting for the .matrix file, you can do the following:
- Go to Edit -> Config... -> config.cson is opened
- Add the following in the "core" section and save the file. You may need to restart Atom for the syntax highlighting to take effect.
06 January 2017, 0:31
Thanks Kristina, I was not aware of 'Atom'. I downloaded the atom editor from https://atom.io/ and followed your instruction and uploaded the CanMEDS framework to Mahara. Are you familiar with the CanMEDS framewok (http://canmeds.royalcollege.ca/)?
06 January 2017, 8:34
Great that you could set up the framework. I did not know the CanMEDS one. There are so many out there.
Please feel free to send me the file so I can add it to our current repository of framework files in case others want to use it to.