question

Chris Ligetti avatar image
2 Likes"
Chris Ligetti asked Ben Wilson answered

Can't submit comment on Q&A with code

Everytime I try and submit a comment to this post () that includes a code block, I hit Submit, the Submit button disables, but the comment does not process. Does anyone else ever have this problem. I know that I have submitted questions in the past with code included.

- ------
submitting comment with code
· 5
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeff Nordgren avatar image Jeff Nordgren commented ·
@Chris Ligetti

I've had similar problems as well. What I've done is make sure the I save my complete post (Ctrl-A then Ctrl-C). Then I will refresh the browser window (which will lose the contents of your post). They I will paste the post back into a new post and submit it. This usually works for me. Not sure why it does that though. Maybe someone else has an explanation as to why this happens? @Paul T

0 Likes 0 ·
Chris Ligetti avatar image Chris Ligetti Jeff Nordgren commented ·

I have even gone to a different computer using a different browser and still have the same issue.

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

This is a test comment with code to attempt to duplicate the issue.

int x = 1;
0 Likes 0 ·
Chris Ligetti avatar image Chris Ligetti commented ·

test comment as Chris, posting code:

int x=1;
0 Likes 0 ·
Chris Ligetti avatar image Chris Ligetti commented ·

Bigger chunk of code:

/**Custom Code*/
Object current = ownerobject(c);
{ // ************* PickOption Start ************* //

int value = msgparam(1);
switch (value){
case 1: closeoutput(current);break;

default: break;
}
} // ******* PickOption End ******* //



0 Likes 0 ·

1 Answer

Ben Wilson avatar image
0 Likes"
Ben Wilson answered

@Chris Ligetti,

I can't seem to duplicate the issue, under my account or yours. Are you using code blocks (as I did in my tests) to submit your code?

Does it do the same thing when you try to post an Answer or Question, as it does when you try to comment?

I have used Chrome and Firefox (latest versions of each) in my testing. Are you using a different browser that I should test?

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.