Support for {code:title=xxx}

Issue #7 resolved
Holger Schimanski repo owner created an issue

We have a problem with your plugin. When entering in a comment you can press the yellow '?' to see wiki text markup that can be used. The example for the {code} tag is this:

{{{ {code:title=Bar.java|borderStyle=solid} // Some comments here public String getFoo() { return foo; } {code} }}}

However this doesn't work with your plugin - no title is added and there is no border.

Do you not think that if you are going to override the inbuilt {code} tag then it should use the same formatting options? Otherwise we're going to get reports from users thinking it's a bug (we've had 1 such report already).

Comments (11)

  1. Holger Schimanski reporter

    I think, title would be useful, but I don't want to add any layout options.

    Kind regards Holger

  2. Danny Hendargo

    Visually, it looks similar to below: HelloWorld.java {code:java} ... {code} If there is no extra layout displayed after specifying options like for panel (border, color, etc), a simpler solution is to not allow options so it is simpler and no extra typing/memorizing the syntax is needed. You just need to update the samples in Help (?).

  3. Holger Schimanski reporter

    Yes, the layout is simple. The HelloWorld.java has 20px margin left. That's it. :-)

    I don't want to give options for border etc. But there is no way to change the help files using JIRA plugin concept. The only way is to replace the corresponding JPS files manually by the system admin and this gone with every JIRA update.

  4. Danny Hendargo

    I looked at how {code: title=foo}...{code} is displayed. It draws border and title. If we lose the title, existing issues that have them suddenly lose information and that is not good :(. Please ignore my previous comment. It will be nice to keep the existing functionality, i.e. title displayed and border drawn. Thank you for this great plugin.

  5. Log in to comment