Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

TCL syntax highlighting - Confluence

lazy boy March 18, 2015

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

2 votes
Answer accepted
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 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.  

 

 

lazy boy March 18, 2015

This worked great, thank you!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events