Allow code snippets on description or variables

Sails
Kilo Sage

Hello,

I am wondering if there is a way that formats the code automatically
Like we have in the community to let the users choose the programming language for adding their code snippets

I know we have a workaround solution though adding [code] <pre> <code> "my code snippet" </pre></code> [/code] tags, but want to know if it is feasible OOTB with the new release? I can add html field type as a variable, but it isn't helping me to format as expected.

Basically, my end users wants to share code snippets in the ticket [properly formatted]

 

Thanks

Sails
ServiceNow Consultant
United Kingdom
5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Sails 

I don't think so.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Sails
Kilo Sage

Thanks @Ankur Bawiskar , may be do you know if we can have a template that can be loaded with these tags [on-demand], I am open for ideas if you have.

Sails
ServiceNow Consultant
United Kingdom

@Sails 

why would someone add a script in any of the ticket/case?

Is this a valid business requirement?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Yes, these aren't essentially any codes
they could be some linux commands or sample syntax which users can copy and execute themselves

Sails
ServiceNow Consultant
United Kingdom