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 Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

947 views 13 11
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