Please enable more code syntax highlighting options
Asked by Luke:

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)?


Answers:
author: Stephen Deutsch
body: 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](https://marketplace.atlassian.com/plugins/com.atlassian.connect.better-code-macro.prod/cloud/overview), which should have at least some of those built-in.

comments: author: Luke
body: 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.


author: Stephen Deutsch
body: 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.


author: weweave UG
body: Even though this question is quite old, for Confluence Cloud you can give our app Prism Syntax Highlighter for Confluence (see [https://marketplace.atlassian.com/apps/1222532/prism-syntax-highlighter-for-confluence](https://marketplace.atlassian.com/apps/1222532/prism-syntax-highlighter-for-confluence?_ga=2.232415647.1027850449.1594148690-719341538.1594148690)) a try. It supports syntax highlighting for Rust, yaml, toml, and Makefile.


author: Nar Kumar C. - Narva Software
body: 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.

comments: author: Zsombor
body: Hi [@Nar Kumar C_ - Narva Software](/t5/user/viewprofilepage/user-id/2114177),

this looks cool but can't install.

It get 404 error with the link:

https://\<yourdomain\>.atlassian.net/plugins/servlet/upm/marketplace/plugins/code-prettify

Could you check it if you experience the same?

Best,  
Zsombor


author: Zsombor
body: Ok, it should be an Atlassian marketplace issue. Never mind.

Starting from confluence admin page, I was able to install the app.


author: Shannon S
body: [@Nar Kumar C_ - Narva Software](/t5/user/viewprofilepage/user-id/2114177),

In regards to the promotion of your add-on Code Syntax Highlighter, please review the [guidelines for vendors](https://community.atlassian.com/t5/Marketplace-Apps-articles/Atlassian-Community-guidelines-for-Marketplace-vendors-and/ba-p/689723), particularly these sections:
> **No spamming:**Although you are welcome to offer your product as a solution when appropriate, this doesn't mean posting links everywhere that you can find.
>
> **No necroposting:** Aka, no "raising threads from the dead."In general, avoid posting on old threads (six months or more old) simply to promote your products.

Please take care to limit the promotions your add-on only on newer threads, and make sure to always let users know that you are the vendor for that add-on.

Thank you for your understanding.

Regards,

Shannon