Features & Development

Improved question editor?

Improved question editor?

by Michael Fraboni -
Number of replies: 2
Hi everyone, thanks so much for the tremendous work that's been done to make WeBWorK!

I have a feature request. Is it feasible to upgrade the question editor page with an embedded code editor like this:
https://ace.c9.io/
or
https://codemirror.net/

In particular, I'm thinking of syntax highlighting, line numbers, and a fixed width font.

Thanks,
Mike
In reply to Michael Fraboni

Re: Improved question editor?

by Michael Gage -
What version of WW are you running? In release 2.13 and 2.14 (and perhaps 2.12?) we do use code mirror for the question editor.


There is a default configuration in default.config:

      

      


        
# This sets if the PG editor should use a js based "codemirror" editor or
# just a textarea
$options{PGCodeMirror} = 1;

Attachment Screenshot_2019-02-10_21.26.08.png
In reply to Michael Gage

Re: Improved question editor?

by Michael Fraboni -
Ah, excellent! I am running 2.12 which does not have that option, so I"ll make it a priority to upgrade soon.

Thanks,
Mike