[LON-CAPA-users] New Content/Problem Editor - Input needed NOW

Joseph Mingrone jrm at ftfl.ca
Tue Oct 21 12:39:10 EDT 2014

Damien Guillaume <damieng at msu.edu> writes:
> Yes, you could use Emacs's nxml-mode with a schema. It provides
> schema-based completion and validation. You will need to convert the
> WXS schema to RelaxNG Compact, because nxml-mode only understands RNC
> (there are tools helping with the conversion, see
> http://stackoverflow.com/q/917337/438970). However, if you edit the
> files directly, you will have to be careful about turning special
> characters like "<" into character entities or use CDATA sections
> (otherwise it it not XML). This is something we will try to hide in
> the future online text editor.
> Since I am also writing a schema for LC2, you could try it right now:
> https://raw.githubusercontent.com/gerdkortemeyer/loncapa/master/conversion/old_loncapa.xsd
> Just be aware that the XML syntax (like CDATA sections) is not
> correctly understood by current LON-CAPA.

Thanks Damien.  I'll give that a shot.



Have you tried multi-web-mode?  It switches between nxml-mode and
cperl-mode depending on the position of the point.  I find it quite
handy for developing LON-CAPA problems.

More information about the LON-CAPA-users mailing list