TCL syntax highlighting - Confluence

Hi,

 

Anyone know how I can add TCL syntax highlighting to the Code Macro in Confluence?

 

Ideally, I would like to install a TCL language file when configuring the Code Macro.

 

Thanks for any help!

 

1 answer

1 accepted

1 vote
Accepted answer
Joe Clark Atlassian Team Mar 18, 2015

Hi @lazy boy!

The Code Macro for Confluence uses the open source syntaxhighlighter library. There are many language files for this library out there on the Internet - here's a blog post that summarizes some of them: http://www.undermyhat.org/blog/2009/09/list-of-brushes-syntaxhighligher/ I did a quick google search and I found a TCL language file that somebody's written: https://gist.github.com/henix/2851521

If you trust this language file and its license conditions are acceptable for you to use, you can go into Confluence admin and go to the "Configure Code Macro" section, and then there's an option to upload a new language file.  

 

 

This worked great, thank you!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,030 views 51 8
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