Forums

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

How can we add code in comments

Naveen Kumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 4, 2023

Iam writing SQL query in comments to change java format

1 answer

3 votes
Kseniia Trushnikova
Community Champion
July 4, 2023

Hi Naveen,

Add this in the comment text mode:

{code:sql}
    Add your code here
{code}

Indeed, the default language for the code panel is Java but 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, XML and YAML.

More info about text formatting can be found here: https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=advanced

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events