'Cannot highlight text in R script

I am facing a rather weird issue, I am unable to highlight code in one of my R script. Highlighting works with the keyboard but not with the mouse and only for that particular script. I have tried copy pasting the lines in another script and from Excel and back to R with no luck.

Let me know if that has happened to you before!

Cheers,

3e = apply_labels(3e,
                  
                  #Partie 1
                  
                  Q2= "Niveau d'études",
                  Q3= "Certification complémentaire",
                  Q4= "Âge de l'enseignant",
                  Q5= "Expérience professionnelle dans l'enseignement",
                  Q6= "Expérience professionnelle avec des élèves de CM2",
                  Q7= "Expérience professionnelle dans l'école",
                  Q8= "L'enseignant a exercé un autre métier avant de devenir enseignant",
                  Q9= "Nom du métier précédent exercé auparanvant",
                  Q10= "Niveau d'études")


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source