Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: k1mgy on June 27, 2007, 02:23:05 pm

Title: file association and syntax highlighting
Post by: k1mgy on June 27, 2007, 02:23:05 pm
Naturally Code::Blocks treats a *.c file properly and provides all the features that are needed including syntax highlighting and code completion.  However I am doing some work in Klone, which has a file extension *.kl1.  Code::Blocks now knows to open this file type, but doesn't know that it's really (mostly) C (mixed with some HTML). 

Is there a way to fool Code::Blocks into believing that a *.kl1 file is *.c?
Title: Re: file association and syntax highlighting
Post by: mandrav on June 27, 2007, 02:59:18 pm
Settings->Editor->Syntax highlighting->[choose C/C++ language], click on "File masks" and add *.kl1 to that mask.
Title: Re: file association and syntax highlighting
Post by: k1mgy on June 27, 2007, 03:44:10 pm
Sweet!

Thank you very much.