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?