More feedback in the comments window

More feedback in the comments window

by Xavier Roca -
Number of replies: 1

Hello,

Many of my students have a hard time finding the error when they misspell their outgoing messages. Although I relax the requirement with regex

I have developed a program to help the student find the wrong word.

I would like to be able to emphasize (color, bold, ...) where the error is in the comments area.

I have found de follow function to emphasize a message

def commentLong (line):

     print ("<| - \ n" + line + "\ n - |>")


but I would like something that could keep the structure of the output this function introduces line breaks that break the structure


Does anyone know if it is possible, p.e change color some letters?


Thanks



Xavier

Average of ratings: -
In reply to Xavier Roca

Re: More feedback in the comments window

by Juan Carlos Rodríguez-del-Pino -
Picture of Particularly helpful Moodlers Picture of Plugin developers
Dear Xavier,
the current versión of VPL has no way to format the output with colors or another style. The available formats are:
- Lines starting with "-" are titles.
- Lines starting with "> " are preformatted text "".

Taking into account your comments I have added on the TODO list "Show the diff in tests".

Best regards,
Juan Carlos.