Parts of my code, where I have comments, go bold

I parts of my code, where I have comments, go bold

def abc

this is the first statement of the procedure (this is a comment it shouldn’t be massive and bold)

a=1
dogs
cats
mice
b=2 # assign 2 to b.
c=3
end

So in the above one of the hashes makes the line bold, which I don’t want.

In one post I did I just deleted all the comments in my code, because every one was causing problems of making text massive and bold

you could post your code with format:

How do I format code in my posts?

given this has to do with the markup on the forum