Prism is a {code}
macro plugin for Atlassian JIRA.
- Support for many programming languages
- Client side syntax highlighting using Prism
Install Atlassian Plugin SDK and run atlas-package
.
Default language is Ruby:
{code}
class Bar < Foo
def initialize(a)
@a = a
end
end
{code}
You can specify another language:
{code:java}
public class Bar extends Foo {
private int a;
public Bar(int a) {
this.a = a;
}
}
{code}
Visual editing in Rich Text Editor is not supported. While you don't have to disable Rich Text Editor in JIRA, you cannot use the visual tab to do code editing.
This plugin uses a slightly modified version of Prism to fix JS compile issues in Atlassian Plugin SDK.
This plugin is released without any support, if you want to add a new feature or fix a bug feel free to submit a PR.
Also check this JIRA Server issue regarding {code}
macro limitations and why this plugin was developed.