code:php not formatting code post upgrade to JIRA 6

Gianna Migliorisi November 26, 2013

Using the JIRA Syntaxt highlighter plugin and it supports PHP but using {code:php} no longer formats the code block.

Other languages work fine. Anyone else having this issue?

4 answers

1 accepted

1 vote
Answer accepted
Holger Schimanski
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 26, 2013
This is not a problem of the plugin. It is simply a wiki syntax error in your input. The closing tag has to be {code} and not {code:php}
Gianna Migliorisi November 26, 2013

Thanks so much. Perhaps earlier versions of JIRA weren't sensitive, as the user didn't change the way he was entering the data. I just edited everything and it works as expected.

0 votes
Gianna Migliorisi November 26, 2013

this is what is being entered:

{code:php}

<?php

function foo($bar) {

echo "hello world";

}

?>

{code:php}

Ivan Zavala-Zapata November 21, 2018

{code:php}

<?php

function foo($bar) {

echo "hello world";

}

?>

{code}

0 votes
Gianna Migliorisi November 26, 2013

screen shot of rendering

0 votes
Holger Schimanski
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 26, 2013
Can you please attach a screenstot and sample text?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events