Fill In The Blanks Syntax Issue

benjaminwhite's picture

I'm having a little trouble with the syntax for Fill In The Blanks. A lot of my answers will require colons and forward slashes, which causes the answer to be wrong. Is there any way that I could disable them, when needed?

fill in the blanks

Content types: 
BV52's picture

Hi Benjamin,

I apologize that this is a hindrance to creating your contents. However there is an existing bug report that aims to resolve this.

-BV52 

benjaminwhite's picture

I just wanted to add my solution for anyone that may search for it later.

I've changed ‘/‘ to ‘^’ in blanks.js to allow for answers to have / . I've also Changed ‘:’ to ‘!’ to allow : to be used without adding tool tips.

Relative file location, using the WordPress plugin:

wp-content/uploads/h5p/libraries/H5P.Blanks-1.11/js/blanks.js

BV52's picture

Hi Benjamin,

Thank you for the suggestion and if I may add if in case the suggested characters are needed in the answer it can be changed to another character that can be changed.

-BV52

I have just started to use the very useful module "Fill in the blanks" for code completion exercises in HTML, the slashes are there everywhere. As I am running Moodle on a hosted platform, I cannot do the workaround Benjamin suggested before. So it would be great if a way could be found to get special characters dealt with properly.
Thanks for an otherwise great plugin!