Damien Guillaume <dami...@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. Joseph P.S. 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. _______________________________________________ LON-CAPA-users mailing list LON-CAPA-users@mail.lon-capa.org http://mail.lon-capa.org/mailman/listinfo/lon-capa-users