Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

How to Permanently Change the Color of the Comments in the Script Editor

37 views
Skip to first unread message

cw noway

unread,
Mar 18, 2025, 3:56:19 PMMar 18
to AutoControl Community Forum
How to Permanently Change the Color of the Comments in the Script Editor to "black."
(SEE ATTACHED PIC)

How do I make the color of the comments in the Script Editor "black" permanently, using a script, snippet, or whatever other way it takes to accomplish this?



I code a lot in the Script Editor and I store many notes as comments that I refer back to often.

 

The ISSUE is that the default comment's color of "light gray" (in the Almond Theme) is difficult to see at times.  (SEE ATTACHED PIC)

 

This is why I want to change the comments color to "black," so I can quickly and easily read my comments and continue coding seamlessly.

 

Below, works.  BUT, AS SOON AS YOU SCROLL UP OR DOWN, the "black" comments return  to the default "light gray" color:

Array.from(document.getElementsByClassName('cm-comment')).forEach(e=>{

            e.style.color = 'black';

})

 

HOW DO I MAKE THE COMMENT COLORS REMAIN "black" NO MATTER WHAT?

 

Any assistance would be greatly appreciated.

Thanks in advance

cw
How to Permanently Change the Color of the Comments in the Script Editor 3.pngHow to Permanently Change the Color of the Comments in the Script Editor 2.png  
How to Permanently Change the Color of the Comments in the Script Editor 3.png
How to Permanently Change the Color of the Comments in the Script Editor 2.png

AutoControl support

unread,
Mar 21, 2025, 5:42:39 AMMar 21
to AutoControl Community Forum
This javascript one-liner does it:

document.head.insertAdjacentHTML("beforeend", "<style>.cm-s-ACtrl-soft .cm-comment {color: black !important}</style>")

cw noway

unread,
Mar 21, 2025, 9:34:03 AMMar 21
to AutoControl Community Forum
Nice...  Thank you.
Reply all
Reply to author
Forward
0 new messages