Code::Blocks Forums

User forums => Help => Topic started by: Maxpm on April 05, 2011, 04:12:43 am

Title: Adding Syntax Highlighting to New File Types
Post by: Maxpm on April 05, 2011, 04:12:43 am
How can I configure Code::Blocks so the syntax highlighting feature works with arbitrary file types?

I'm using the .tpp extension for template implementation, but without syntax highlighting it's rather difficult to see what I'm doing.
Title: Re: Adding Syntax Highlighting to New File Types
Post by: MortenMacFly on April 05, 2011, 06:39:35 am
How can I configure Code::Blocks so the syntax highlighting feature works with arbitrary file types?

I'm using the .tpp extension for template implementation, but without syntax highlighting it's rather difficult to see what I'm doing.
Add this to the "file types and associations", found in the project manager when you right click.
Title: Re: Adding Syntax Highlighting to New File Types
Post by: Jenna on April 05, 2011, 07:07:37 am
How can I configure Code::Blocks so the syntax highlighting feature works with arbitrary file types?

I'm using the .tpp extension for template implementation, but without syntax highlighting it's rather difficult to see what I'm doing.
Add this to the "file types and associations", found in the project manager when you right click.
This only adds it to the correct filetype in the project-tree.
To get syntax highlighting, you have to add it to the filemask in  "Editor -> Syntax highlighting -> Syntax highlighting for: -> [type of your file]".
Title: Re: Adding Syntax Highlighting to New File Types
Post by: Maxpm on April 06, 2011, 06:13:11 am
That did the trick.  Thanks!