cancel
Showing results for 
Search instead for 
Did you mean: 

Insert code in post

Pawan_Kesari
Active Contributor
0 Kudos

Hi,

I was wondering how to insert code in post using new editor. Couldn't find any button, even in advanced editor.

I tried searching but couldn't find any post / document on this.

Use to have tag [code] (if I remember correctly), any equivalent tag in new editor.

Pawan.

Accepted Solutions (1)

Accepted Solutions (1)

Lukas_Weigelt
Active Contributor
0 Kudos

Methinks there is none. I was working around this by using the "quote"-function, delete all quoted content and insert my code to make it better readable. But you don't get that stylish embedded box which allows for scrolling and stuff .

Aside from that, you can use the syntax highlighter, which ironically has pretty much everything except ABAP 🙂 ....

Cheers, Lukas

Pawan_Kesari
Active Contributor
0 Kudos

Lukas Weigelt wrote:

Methinks there is none. I was working around this by using the "quote"-function, delete all quoted content and insert my code to make it better readable. But you don't get that stylish embedded box which allows for scrolling and stuff .

Aside from that, you can use the syntax highlighter, which ironically has pretty much everything except ABAP 🙂 ....

Cheers, Lukas

Hi Lukas,

Thanks for highlighting syntax highlighter

Thats good enough for me, as long as I get fixed length font, which doesn't mess with the alignment of my code.

Wonder why this Syntax highlighter is not in basic editor. I think its good feature and should be available in basic editor.

Thanks,

Pawan.

ThomasZloch
Active Contributor
0 Kudos

You could vote for these related ideas on idea place:

https://cw.sdn.sap.com/cw/ideas/8218

https://cw.sdn.sap.com/cw/ideas/9378

Thomas

Lukas_Weigelt
Active Contributor
0 Kudos

Indeed! Done.

Pawan_Kesari
Active Contributor
0 Kudos

Just did.

Thanks,

Pawan.

Answers (0)