How to change the color of every hypertext link ?

Where should I paste it ?
Also, when I paste the code in the code editor, it shows “text1” as an error.