Need Syntax Highlighting in OnDemand

Marcel Stoll October 6, 2013

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

1 vote
Answer accepted
Marcel Stoll October 6, 2013

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?


Ignat
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 6, 2013

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 votes
Ignat
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 6, 2013

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.

T November 18, 2016

Hosted JIRA claims that Python is not a supported language!

Brian Carlson January 13, 2017

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 Sign up to answer