Please enable more code syntax highlighting options Edited

I use Rust, yaml, toml, and Makefile in most projects for work, and that involves writing some documentation on our wiki too.

Edit: also Assembly.

Can we please get further options added (in particular, the ones above)?

2 answers

1 vote
Stephen Deutsch Community Champion Jan 15, 2018

If you're using Confluence Server, then you can import your own Syntaxhighlighter brushes (.js files) into the Code Macro options in the 
Administrator options in order to enable syntax highlighting for other languages.

If you're using Confluence Cloud, then you could install Better Code Macro for Confluence, which should have at least some of those built-in.

That's great to see, but means I need to get an admin to install it since it's not a default.

I would much prefer to see the list of supported syntax highlights expanded by default for everyone.

Stephen Deutsch Community Champion Jan 17, 2018

Well, I just saw the release notes for Confluence 6.7, and it appears that YAML will be supported out of the box. I would recommend voting for the following issue on the Atlassian Jira site:

https://jira.atlassian.com/browse/CONFSERVER-53554

Until then, your best bet is probably to talk to your admin.

Hi Luke Jones,

 

I recently created custom code syntax highlighter for Confluence Cloud https://marketplace.atlassian.com/apps/1219685/code-syntax-highlighter

 

This covers most of the languages you are mentioning. It's free plugin for now, please try it and let me know if it solves your problem. Thank you.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

101 views 3 4
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