The Zurich release has arrived! Interested in new features and functionalities? Click here for more

how to add code (snippet) to community question/answer

tobrien
Kilo Guru

I've seen formatted code-snips in questions and responses but I do not see how to set that formatting --

thanks in advance,

tony

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

You need to first click "Use advanced editor" in the upper right corner:



find_real_file.png



Once you get that you'll get more toys on the toolbar. Select your text, then choose the >> icon, Syntax Highlighting, javascript (or appropriate.)



find_real_file.png


View solution in original post

4 REPLIES 4

Brad Tilton
ServiceNow Employee
ServiceNow Employee

You can click Use Advanced Editor at the top right of your post, then highlight the snippet and then use the >> button.



Screen Shot 2017-01-11 at 8.32.45 AM.png


Chuck Tomasi
Tera Patron

You need to first click "Use advanced editor" in the upper right corner:



find_real_file.png



Once you get that you'll get more toys on the toolbar. Select your text, then choose the >> icon, Syntax Highlighting, javascript (or appropriate.)



find_real_file.png


tobrien
Kilo Guru

Oooooh, and sneaking in just ahead of Mr. Tilton, was Mr. Tomasi ---



Thanks to you both!


Grow2Dev
Tera Guru

Update regarding the editor if someone ends here in 2023:

Click:

- Edit Reply

Grow2Dev_1-1672759721173.png

 

- Expand toolbar

Grow2Dev_2-1672759771691.png

- Insert/Edit code sample

 

Grow2Dev_0-1672759692514.png

 

Choose your preferred language and insert your code snippet

Grow2Dev_3-1672759856929.png

 

Happy code snipping 😉