Is there a syntax highlighting tool for knowledge base articles? (Fuji)

JimmieOdelius
Tera Expert

Hi.

I am new to ServiceNow and this community so excuse me if this has been asked before. (I did try to look. )

I'm wondering if it is possible to add an option for using the syntax highlighting tool that is available here in knowledgebase articles.

Is it also possible to add language support for Bash syntax highlighting?

We are running fuji if that helps.

Example:

"I would like something like this"

"But with highlighting for bash instead of python."

Thanks in advance!

-Jimmie Odelius

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

I've actually looked into this a bit and there are tools out on the web, but nothing that can be added to SN easily. What I've done is just add an infomessage to the top of the article with a link to a web formatter that generates some highlighted html you can paste into the kb text field. It would be nice to do all of that from the kb form though.


View solution in original post

4 REPLIES 4

Brad Tilton
ServiceNow Employee
ServiceNow Employee

I've actually looked into this a bit and there are tools out on the web, but nothing that can be added to SN easily. What I've done is just add an infomessage to the top of the article with a link to a web formatter that generates some highlighted html you can paste into the kb text field. It would be nice to do all of that from the kb form though.


That will suffice for now I guess. We can always hope for a neat implementation in the future.


Can I have a link to the formatter in question?


ventsim
Kilo Contributor

Hello from 2017. Maybe there is such tool now?


Unfortunately I haven't seen anything.