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
Joseph 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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,348 views 25 10
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