Forums

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

Request to support cURL in code syntax highlight

Michal Landsman May 26, 2025

Please add support for this kind of code. I think that confuence users use this in doc a lot, for general examples.

Screenshot 2025-05-26 at 11.17.54.png

 

Or provide us a way how to add custom types like this...

 

 

2 answers

0 votes
Sanam Malleswari
Community Champion
May 26, 2025

Hi @Michal Landsman

Welcome to the Atlassian Community!

Please try below options.

1. Use Built-in Code Block Macro (Basic)
Insert the code block macro | Confluence Cloud | Atlassian Support

  • Confluence supports the /Code block macro with syntax highlighting for many languages (e.g., bash, JSON, JavaScript).

  • But it doesn’t support advanced features like:

    • Auto-complete

    • Tabbed blocks (Request/Response)

    • Curl-to-code conversion

2. Forge App 
https://developer.atlassian.com/platform/forge/build-a-hello-world-app-in-confluence/

If you're comfortable with Atlassian Forge 

  • Build a custom macro that accepts

  • Render it using Forge UI + styles.

Michal Landsman May 26, 2025

I am talking about code block which do not have support for this language or syntax. 

Basic `bash` syntax would be enough.

0 votes
Piyush Annadate _ACE Pune_
Community Champion
May 26, 2025

Hello @Michal Landsman ,
Welcome to the Community !

Based on https://support.atlassian.com/confluence-cloud/docs/insert-the-code-block-macro/ - With cloud instance, that's a native feature and one cannot add new language !!

You could try installing this add-on and see if highlighting is supported

https://marketplace.atlassian.com/apps/1214912/better-code-macro-for-confluence?tab=overview&hosting=cloud

Michal Landsman May 26, 2025

I don't want to use 3rd-party apps. This is core functionality.

Piyush Annadate _ACE Pune_
Community Champion
May 26, 2025

with previous comment, currently the list if fixed, we cannot alter the language list yet, probably in future there could be update on this.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events