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

This widget could not be displayed.

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 Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

460 views 6 6
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