cancel
Showing results for 
Search instead for 
Did you mean: 

Code insufficiently formatted in answers and comments

Johan_H
Active Contributor
0 Kudos

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:

VeselinaPeykova
Active Contributor

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.... 🙂

Johan_H
Active Contributor
0 Kudos

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

VeselinaPeykova
Active Contributor
0 Kudos

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 🙂

former_member186338
Active Contributor
0 Kudos

Unable to vote on CI, due to personal information issue 😞

Johan_H
Active Contributor
0 Kudos

Were you a n a u g h t y boy, Vadim? 🙂

Johan_H
Active Contributor
VeselinaPeykova
Active Contributor
0 Kudos

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.

Johan_H
Active Contributor
0 Kudos

Ok, got it

Johan_H
Active Contributor
0 Kudos

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

VeselinaPeykova
Active Contributor
0 Kudos

SAP Community is a huge time sink on its own... maybe after SC becomes easier to use I could find some time for CI 🙂

Johan_H
Active Contributor

You just touched upon two chickens and two eggs. 🙂

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member186338
Active Contributor

Test answer with code

TEST CODE
END TEST CODE

Test answer end.

former_member186338
Active Contributor
0 Kudos

Test comment with code

TEST CODE
END TEST CODE

Test comment end.

Johan_H
Active Contributor
0 Kudos
former_member186338
Active Contributor
0 Kudos

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!

former_member186338
Active Contributor
0 Kudos

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

Johan_H
Active Contributor
0 Kudos

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.