Add custom syntaxhighlighting to code block macro

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

This widget could not be displayed.
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

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
Community showcase
Published Apr 22, 2018 in Jira Software

How-to setup a secured Jira Software 7.9.0 on Ubuntu 16.04.4 in less than 30 minutes

...PermissionsStartOnly=true User=www-data Group=www-data ExecStart=/opt/jira/bin/startup.sh ExecStop=/opt/jira/bin/shutdown.sh TimeoutStartSec=120 TimeoutStopSec=600 PrivateTmp=true [Install] WantedBy...

1,434 views 10 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you