User forums > Using Code::Blocks
file association and syntax highlighting
(1/1)
k1mgy:
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?
mandrav:
Settings->Editor->Syntax highlighting->[choose C/C++ language], click on "File masks" and add *.kl1 to that mask.
k1mgy:
Sweet!
Thank you very much.
Navigation
[0] Message Index
Go to full version