In the editing mode (C-c ') I formatted php code using TAB button. But in org mode src block it adds 2 comma to phpDoc.
1 Answer
It has nothing to with your TABs.
org src blocks put a comma before every * that starts a line (that is the first non-space character). I think it's just a way to not confuse other org-mode commands.
-
I found similar topic org-fill-paragraph-leaves-a-comma-at-end-of-c-style-comment and even someone already submit it as a issue spacemacs issue. It looks horrible how I can remove it. I think org-mode should be disable in src code block. Any ideas?slk500– slk5002019-01-27 08:07:59 +00:00Commented Jan 27, 2019 at 8:07
-
1Do you really need to remove it to your org file? If you want to export your file, org-mode will remove it for you. But if it is just to look nice, you can replace all
",*"with"*". Your org-src block should evaluate normally, but I can't guarantee that some other org commands won't conflit with that.adl– adl2019-01-28 01:31:12 +00:00Commented Jan 28, 2019 at 1:31 -
I see this inconvenient syntax as a way to preserve previous org functions that use
*as a special character.adl– adl2019-01-28 01:34:20 +00:00Commented Jan 28, 2019 at 1:34
