cancel
Showing results for 
Search instead for 
Did you mean: 

How to post code in SAP Community >=2024

Sandra_Rossi
Active Contributor
0 Kudos
1,248

I'm posting a question with code, but the code looks ugly, no color and no monospaced font.

How to make it display pretty?

e.g. Want to download PDF from Spool using 'CONVERT_ABA... - SAP Community

Sandra_Rossi_0-1714304350437.png

i.e. how to obtain monospaced font, colors, like this:

Sandra_Rossi_0-1716214193689.png

 

Accepted Solutions (1)

Accepted Solutions (1)

Sandra_Rossi
Active Contributor

First click on "..." (Expand toolbar):

Sandra_Rossi_1-1714304560438.png

Then position your cursor where you want to insert your code and and click "</>" (Insert/Edit code sample):

Sandra_Rossi_3-1714304851042.png

Select the code language, paste your code and click OK:

Sandra_Rossi_2-1714304764505.png

Now the code is displayed with color and monospaced font:

Sandra_Rossi_4-1714304977036.png

Note that if you edit your post again, there is a bug about blank lines added before and after the code, SAP is informed and it will be fixed → Blog editor does strange changes - SAP Community (last update: April 24th, 2024).

RaymondGiuseppi
Active Contributor
it will be corrected... someday.
AnnePetteroe
Community Manager
Community Manager
The bug with the space around the code sample blocks has not been forgotten. We have been working with our vendor to fix the issue.

Answers (0)