Need Syntax Highlighting in OnDemand

Hello,

We urgently need Syntax Highlighting for our programmers. It is most important for "python" our main programming language. Is there a way to set this in JIRA OnDemand. It is quite important for us. I would appreciate a solution.

2 answers

1 accepted

Okay Thanks, and how does it works in Confluence OnDemand? Here comes this Message: Unable to find source-code formatter for language: python. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml

How can I activate or enable it?


In Confluence it may be even easier. You just have to use the 'code' macro.

This article can be a nice guide:

https://confluence.atlassian.com/display/DOC/Code+Block+Macro

--

Cheers, Ignat.

0 vote

Hi Marcel Stoll,

In JIRA you could use {code} macro to use syntax highlight for source code snippets.

Try to paste this in the issue comment field:

This is a {code}

// Java printing sample

System.out.println("Hello, world!");

{code}

If this does not work for you - you may need to enable this feature by the following steps:

  1. Log in as administrator to your OnDemand instance.
  2. Click the Cog Icon in the top-right, select Issues
  3. In Issues section select View Field Configuration from the left menu
  4. Then, select the configuration you are using for the JIRA project (or select the Default Field Configuration if you have not set up any specific configuration)
  5. After that, make sure that the Wiki Style Renderer is the renderer for the fields you are intersted in (e.g. Comments, Description, etc).

Hope this helps!

--

Cheers, Ignat.

Hosted JIRA claims that Python is not a supported language!

Doesn't help at all. 

 

The problem is with syntax highlighting of python not syntax highlighting python code using java syntax in JIRA (not confluence)

 

# This program adds up integers in the command line
import sys
try:
    total = sum(int(arg) for arg in sys.argv[1:])
    print 'sum =', total
except ValueError:
    print 'Please supply integer arguments'

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,209 views 13 19
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot