Author Topic: syntax coloring  (Read 3181 times)

Offline benkenobi01

  • Multiple posting newcomer
  • *
  • Posts: 64
syntax coloring
« on: February 15, 2010, 04:45:41 pm »
hi
Is it possible to have a C style syntax coloring for custom files ? i am using some files that have .vert and .frag extension and i would like to have them syntax colored when in codeblock.
regards

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: syntax coloring
« Reply #1 on: February 15, 2010, 04:59:24 pm »
hi
Is it possible to have a C style syntax coloring for custom files ? i am using some files that have .vert and .frag extension and i would like to have them syntax colored when in codeblock.
regards
Change the XML-lexer-file by adding the file extension in question, namely the file "lexer_cpp.xml" in:
[CodeBlocks_Installation_Folder]\share\CodeBlocks\lexers
... first node, attribute "filemasks".

Alternatively you can configure this in C::B as well under:
Settings -> Editor -> Syntax highlighting -> Choose "C/C++" -> Hit  the button "Filemasks..." besides.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline benkenobi01

  • Multiple posting newcomer
  • *
  • Posts: 64
Re: syntax coloring
« Reply #2 on: February 15, 2010, 06:16:38 pm »
thank you.