Perl 6 - the future is here, just unevenly distributed

IRC log for #webwork, 2013-01-23

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:23 djun joined #webwork
08:33 djun joined #webwork
09:56 djun joined #webwork
12:50 mgage_ joined #webwork
13:58 goehle joined #webwork
14:18 aubreyja joined #webwork
17:09 joker5437 joined #webwork
17:13 joker5437 left #webwork
18:20 djun joined #webwork
20:13 djun joined #webwork
20:33 dpvc joined #webwork
21:59 djun joined #webwork
23:14 theseb joined #webwork
23:14 theseb possible to have correct answers displayed by Webwork on multiple lines?
23:14 theseb (I'm thinking of when student clicks the "Show correct answers" checkbox
23:14 theseb ...WITHOUT any formatting like centering, etc?
23:19 mgage I don't know -- probably but I've never had to deal with this problem.
23:21 theseb heh
23:22 theseb mgage: i'm grading computer programs so the "answer" is a properly indented computer program! :)
23:22 theseb mgage: i noticed webwork converts newlines to html breaks... </br>
23:22 theseb mgage: what about this....any way to have webwork interpret it as raw html?
23:23 theseb mgage: then i could embed css and do whatever was needed in the "html problem answer"
23:23 theseb mgage: ever heard of the html <pre> tag? something like that would work
23:25 mgage I'm sure there is -- but  it's a new use case -- so you would have to look at the code for displaying answers (probably in Problem.pm) and modify that.  Since the whole box of answers is called from the template via Template.pm   you could probably just change the template and have it call "computerAnswerBlock" instead of attemptedAnswers -- or whatever the code is called that displays the answers --- that gives you a lot of flexibility for adding
23:25 mgage feature without hurting the existing behavior.
23:26 mgage yep -- you could use <pre> tags and use those
23:26 theseb very nice..ok i'll take a look at those files
23:26 theseb thanks
23:28 mgage if you want to use css and javaScript then just adding some <div> tags with id's to the way the answer output is generated might give you additional flexibility without changing much existing code.  That code was written long before CSS existed and well before javaScript was a real language.
23:28 mgage headed home.   ttyl
23:28 theseb ok
23:40 djun theseb: displaying raw HTML is prone to all kinds of security issues.  If student answers include <script> tags, for example, there's all kinds of possibilities for XSS and other malicious behaviour.
23:41 djun But your request is a very good one - answer formatting and display formatting in general should be much more flexible :)
23:41 djun_ joined #webwork

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary