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

Steve Currie February 20, 2014

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

0 votes
Steve Currie February 26, 2014

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
TAGS
AUG Leaders

Atlassian Community Events