Author Topic: file association and syntax highlighting  (Read 3004 times)

Offline k1mgy

  • Multiple posting newcomer
  • *
  • Posts: 64
file association and syntax highlighting
« 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?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: file association and syntax highlighting
« Reply #1 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.
Be patient!
This bug will be fixed soon...

Offline k1mgy

  • Multiple posting newcomer
  • *
  • Posts: 64
Re: file association and syntax highlighting
« Reply #2 on: June 27, 2007, 03:44:10 pm »
Sweet!

Thank you very much.