Skip to Content
0

Code insufficiently formatted in answers and comments

Oct 27, 2017 at 08:06 AM

73

avatar image

Code insufficiently formatted in answers and comments, making code snippets unnecessarily difficult to read.

This is good, the code is clearly distinguishable from the rest of the text:

This is not good, and can even cause mistakes and confusion, as it is unclear where the code ends, and the normal text continues:

10 |10000 characters needed characters left characters exceeded

The 'good one' has class= "prettyprint lang-abap prettyprinted" style=" " within <pre> </pre>, while the ugly one just has the <pre> </pre> part.

I don't suppose that a css adjustment is difficult to achieve, but maybe this requires posting an idea in the new Customer Influence site, gathering supporters via other channels, prioritization.... :)

1

I will post it on CI, and then I am going to not hold my breath ;-)

0

If you post the idea - make sure to announce it also in Coffee Corner with a direct link to stand a chance of passing the minimum votes barrier :)

0
0

I liked the post and voted on the idea.

I have not decided yet if I will be using the CI site in the future, but until then if there are direct links and if I knew in advance what it is about (it may be good to explain briefly in CC the reasoning behind the idea) I will probably vote on good ones.

Do not rely too much on people browsing ideas - the new CI site needs polishing to become a pleasure to use.

0

Yeah, CI is not great compared to Idea Place, but if you want to help polish CI :-)

0
Show more comments

Unable to vote on CI, due to personal information issue :(

0

Were you a n a u g h t y boy, Vadim? :-)

0
0

Ok, got it

0
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Vadim Kalinin Oct 27, 2017 at 08:51 AM
1

Test answer with code

TEST CODE
END TEST CODE

Test answer end.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Test comment with code

TEST CODE
END TEST CODE

Test comment end.

0
Vadim Kalinin Oct 27, 2017 at 08:15 AM
0

Sorry, but not clear what is the issue? Code block has grey background...

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Code block has a clear grey background and demarcation in the question (first screenshot), but not (or hardly visible) in the comments (second screenshot).

In this example the person posting the question could easily (unwittingly) copy the code including the "Regards," and get a big fat error when they try it out.

Also a different code formatting in comments is entirely unnecessary. Comments are hidden anyway, so no worries that the entire question would become hard to read.

0
Vadim Kalinin Oct 27, 2017 at 08:56 AM
0

Yes, I understand your point:

Code in the comment has no border, no space before and after, different font size and no syntax highlight.

Minor bug, but for sure has to be fixed!

Share
10 |10000 characters needed characters left characters exceeded
Johan Hakkesteegt Oct 27, 2017 at 10:18 AM
0
Share
10 |10000 characters needed characters left characters exceeded