Customizing Code-macro syntax highlighting for a supported-by-default language , e.g., Ruby

With the code macro in Confluence 5.1, there are a number of languages that have syntax highlighting automatically, and I understand how new ones can be added, but there doesn't seem to be a way to EDIT an existing (not user-created) language. Specifically, I don't know how to edit the syntax highlighting brush for Ruby, nor can I add a new brush for Ruby because one already exists (by default). In short, this is because the brush for Ruby is deficient in a few specific ways, and I'd like to fix those.

1 answer

In the mean time, I chose to add a new language brush akin to "Ruby2" that does not go backward to pages with the ruby language chosen, but can be use for future pages (though that leaves a forked syntax problem that's going to come back to haunt us later).

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,070 views 56 8
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you