Any way to stop org mode from adding preceding commas from src blocks?

When writing C code in org mode, things , after pressing Enter or Tab, like...

*(p2+1)='e';

end up w/ preceding commas. I've tried w/ emacs -q and I have the same issue. Is there any short term fix for this?

UPDATE

I realize now this is a quoting mechanism to prevent confusion inside an org document, and that this should not be removed. Instead is there a good way to font lock these commas so that they are barely visible?

1 points · 2 comments · view on lemmy.world

2 Comments

danderzei@alien.top · 1 pts · 2y

What type of source block is it? Did you configure org-babel?

yantar92@communick.news · 1 pts · 2y

Instead is there a good way to font lock these commas so that they are barely visible?

You can add a custom font-lock-keyword.