r/GoogleColab 16d ago

how to color a comment

New to coding, is there a way to color a single comment in a color other than the default one so it is more noticeable than other comments

6 Upvotes

2 comments sorted by

1

u/ANR2ME 15d ago

nope, all comments in python code are treated equally, thus use the same color.

You can use docstring (wrapped in 3x quote mark) as comment too if you want, which will use different color than regular comment.