Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add custom syntaxhighlighting to code block macro

Henk Noppe
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 6, 2017

Dear people,

I would like to add a syntax highlighter for a new language to the code block macro of Jira. Only thus far I could not find any documentation how I can achieve this. The only documentation I could find using google is about Confluence. Is it possible to add a new language? If so could anyone point me to the documentation page?

Many thanks!

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 6, 2017
Hello,
In Jira you need to develop your own renderer or look for plugins where such a renderer implemented.
For plugin tutorial look here
https://developer.atlassian.com/jiradev/jira-platform/guides/rich-text-editor/tutorial-writing-plugin-for-rich-text-editor-in-jira
Henk Noppe
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 6, 2017

Tnx Alexey,

This got me on the right track. I discovered the package Prism on the Market Place. This package supports the Prism syntax highlighter (http://prismjs.com/)

Suggest an answer

Log in or Sign up to answer