Forums | Mahara Community

Support /
Create a framework file for SmartEvidence


Bas Bakker's profile picture
Posts: 14

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?

Kristina Hoeppner's profile picture
Posts: 4863

05 January 2017, 14:48

Hello Bas,

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.

Cheers

Kristina

-------------

If using Atom and you want to have JSON syntax highlighting for the .matrix file, you can do the following:

  1. Go to Edit -> Config... -> config.cson is opened
  2. Add the following in the "core" section and save the file. You may need to restart Atom for the syntax highlighting to take effect.
    customFileTypes:
      'source.json': [
        'matrix'
      ]
Bas Bakker's profile picture
Posts: 14

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/)?

Kristina Hoeppner's profile picture
Posts: 4863

06 January 2017, 8:34

Hello Bas,

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.

Cheers

Kristina

 

4 results