Forums

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

Syntax highlighting is always set to Java in Jira Cloud

chadd
Contributor
March 10, 2019

No matter what I do the language is always "Java"

 

To reproduce:

  • edit the description of a card in either Classic or Next-Gen project, from either Backlog or Board view
  • type ``` to begin code block markdown
  • in the language popup that's presented, choose anything except Java. e.g. python (i've tried pressing enter, shift-enter, etc to "engage" my choice, but nothing seems to change the result)
  • finish typing code
  • click on the Save button to update the description
  • note that the code is not properly highlighted with color
  • click on the description again to edit it:  the language says Java

 

2 answers

1 accepted

0 votes
Answer accepted
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 19, 2019

Hi Chad,

Thanks for explaining.  Sorry to hear you have encountered this problem.  I found this is a documented bug in the new issue view.  We are tracking this specific bug in JRACLOUD-71440

You can watch that issue to follow updates to this, and I would recommend voting on this in order help our development team prioritize this fix.

Regards,

Andy

chadd
Contributor
March 19, 2019

Thanks for the link. 

 

By the way, were you able to find any documentation on this feature?  It seems strange that it should be so hard to find.  

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 18, 2019

Hi Chad,

I am having some difficulty trying to recreate the problem you have mentioned here.  At least in my own Cloud site, when I edit a description from a backlog or board, the use of ``` does nothing in my environment.

However I can use the {code} macro in order to denote my text is code, and there are additional parameters you can pass this to determine code type.   This is also documented in Text Formatting Notation Help: Advanced:

{code:title=Bar.java|borderStyle=solid}
// Some comments here
public String getFoo()
{
    return foo;
}
{code}
{code:xml}
    <test>
        <another tag="attribute"/>
    </test>
{code}

Makes a preformatted block of code with syntax highlighting. All the optional parameters of {panel} macro are valid for {code} too. The default language is Javabut you can specify others too, including ActionScript, Ada, AppleScript, bash, C, C#, C++, CSS, Erlang, Go, Groovy, Haskell, HTML, JavaScript, JSON, Lua, Nyan, Objc, Perl, PHP, Python, R, Ruby, Scala, SQL, Swift, VisualBasic, XMLand YAML.

I don't seem to have the same functionality you are referring to here.  I don't have a selector for language type.  But I can specify the type such as in the example above.  In my case it at least does highlight differently between Java and XML when set as such.

Perhaps your site is using a plugin to do syntax highlighting instead.  I'm not sure how else to account for what seems to be very different functionality in regards syntax highlighting here.

chadd
Contributor
March 18, 2019

Hi,

Screen Shot 2019-03-18 at 11.36.48 AM.png

I have not installed any plugins, this is a completely vanilla cloud-based Jira Software.  That blurb above seems to indicate that new rollouts are using markdown instead of markup by default, but I can't find any other documentation on this feature.  

This is getting pretty ridiculous. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events