Issues

ZF-24: Need PHP code formatter for JIRA and Confluence Wiki

Issue Type: Task Created: 2006-06-19T11:08:43.000+0000 Last Updated: 2011-09-02T12:13:44.000+0000 Status: Postponed Fix version(s): Reporter: Willie Alberty (willie) Assignee: Matthew Weier O'Phinney (matthew) Tags: Related issues: Attachments:

Description

JIRA does not currently have a formatter for PHP code. For example, the following block:

<pre class="literal">



<pre class="highlight">
<?php
    echo "Hello world!";
?>

generates an error:

<pre class="highlight">
<?php
    echo "Hello world!";
?>

A workaround is to omit the language parameter to the {``` block, but this falls back to Java syntax highlighting.

Comments

Posted by Jayson Minard (jayson) on 2006-06-20T12:28:23.000+0000

Atlassian has one underway for Confluence that does PHP, but it is a bit too buggy at the moment, and that one will move to JIRA as well when done. Right now, use ``` with no language specified.

Down the road, if they do not come through, I can modify the existing code to add the language formatting.

Posted by Gavin (gavin) on 2006-09-22T19:24:38.000+0000

Eventually, a syntax highlighter for PHP will be released for Confluence. We would greatly appreciate If community members could help monitor their progress, and notify us when the plugin reaches a "pre-release" quality:

http://confluence.atlassian.com/display/DOC/…

Also, as you find more information about the PHP highlighter, please post it here.

Thanks!

Posted by Andries Seutens (andries) on 2006-09-23T04:49:17.000+0000

Hello!

I might be wrong, but to me it looks like a new code plugin has been released: http://confluence.atlassian.com/display/CONFEXT/…

Currently these are the supported languages and the aliases for them:

*  C Sharp - c#, csharp, c-sharp
* Delphi - delphi
* HTML - html, xhtml
* Java - java
* Javascript - js, jscript, javascript
* Pascal - pascal
* PHP - php
* Python - python, py
* Shell scripts - shell
* SQL - sql
* VB - vb, vb.net
* XML - xml

Posted by Bill Karwin (bkarwin) on 2006-10-17T18:56:32.000+0000

Gavin completed this task yesterday.

Posted by Willie Alberty (willie) on 2006-10-17T19:08:47.000+0000

According to the live example provided in the Issue description, this has not yet been addressed in JIRA.

Posted by Gavin (gavin) on 2006-10-17T19:32:00.000+0000

The macro is for Confluence, not JIRA. So the example won't work in JIRA, but does work in our wiki. Imperfect world ...

Posted by Gavin (gavin) on 2006-10-20T19:19:20.000+0000

So .. we should continue to monitor and see if this Confluence macro becomes available for JIRA.

Posted by Bill Karwin (bkarwin) on 2006-11-13T15:19:02.000+0000

Changing fix version to unknown.

Posted by Andries Seutens (andries) on 2007-01-30T03:18:57.000+0000

I believe this is fixed now. (At least in confluence) Trying an example here, if this works, this issue can be closed.

<pre class="highlight">
<?php
    echo 'Hello world!';
?>

Posted by Willie Alberty (willie) on 2007-01-30T12:26:42.000+0000

To be clear, this issue was opened in June when both Confluence and JIRA lacked PHP code formatting. Confluence has since been updated, but JIRA has not, as evidenced by the comment above.

I believe this issue should remain open as a minor priority to-do item until a plug-in for JIRA is available.

Posted by George Montana Harkin (harking) on 2010-07-27T07:32:23.000+0000

This needs to be revisited.

It's egg on Zend's face when their issue tracker doesn't even highlight PHP code.

Posted by Colin Mutter (cmutter) on 2011-05-20T13:14:14.000+0000

Agree with the last poster, and this issue is approaching it's 5 year birthday. That is a LONG time to be running without proper syntax highlighting. Zend, you have some clout...can you kindly suggest to the JIRA team that they need to finish this up?

Posted by Tobias Hoffmann (demonkoryu) on 2011-09-02T12:13:44.000+0000

You can follow JRA-23604 on the JIRA bug tracker for progress.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts