Hi Giuliana
If you're editing code within an Ace window and type the comma key while holding down Ctrl, you should get the menu I've shown above. Is that not working for you? Perhaps try doing that in the
demo page on this website to see if it behaves differently from your site as confirmation?
If syntax highlighting isn't working with multiple languages, I think Ace is somewhat broken on your system. Has it ever worked properly in the past? I assume it also doesn't work within the question authoring form (e.g. the sample answer field)?
Ace is packaged into CodeRunner, complete with around 175 different language modes. The full set of modes should be displayed in the mode dropdown in the Ace menu, if you're able to bring that up.
My current guess is that Ace is failing to fetch the mode scripts. If that's the case, you should see an error in the JavaScript console. To check for this, use the Chrome browser, open the Developer Tools page (e.g. type Shift+Ctrl+I) and select the Console tab. Then load a CodeRunner question. What do you see in the Console tab? You might also try selecting the Network tab and reloading. Are there any 404s in there?
I'm struggling to think of a likely cause for this issue, but three vague possibilities are:
- The CodeRunner install is corrupted. Updating to the latest version might be worth a try.
- The file access permissions are wrongly set within the ace folder of the CodeRunner plugin.
- There's some extra security plugin on your Moodle site that is disallowing the loading of the mode files.