Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: foldingBLACKlinesSUCK on November 15, 2008, 12:07:07 am

Title: [REQUEST]Load .java file with C style code coloring (there's no coloring AT ALL)
Post by: foldingBLACKlinesSUCK on November 15, 2008, 12:07:07 am
I REALLY love CodeBlocks and all of it's features... It's very frustrating to rename every single .java file to .c just for CodeColoring and Code folding...  :(

PLEEEEEEASE Consider this feature  :lol:
Title: Re: [REQUEST]Load .java file with C style code coloring (there's no coloring AT ALL)
Post by: TDragon on November 15, 2008, 12:15:40 am
Just add .java to the list of extensions for C/C++ syntax highlighting. (It's in the Editor settings.)
Title: Re: [REQUEST]Load .java file with C style code coloring (there's no coloring AT ALL)
Post by: foldingBLACKlinesSUCK on November 15, 2008, 12:19:18 am
Just add .java to the list of extensions for C/C++ syntax highlighting. (It's in the Editor settings.)


AAAAAAAAAAAAAAAAAAAAAAAAAWESOMEEEE!  :D

Now I can edit javascript and java and html both in CodeBlocks  :lol:

This made my work 40x Faster and more easier  :lol:
Title: Re: [REQUEST]Load .java file with C style code coloring (there's no coloring AT ALL)
Post by: Jenna on November 15, 2008, 12:19:50 am
You can chose highlight mode for the actual file from "Edit -> Highlight mode", but that only works until the file is closed.

A permanet solution is to add *.java to the filemask used for c/c++-syntax highlighting: Click and chose "Settings -> Editor.. -> Syntax highlighting -> Syntax highlighting for: C/C++ -> Filemasks..." and add "*.java" .

EDIT:
 :cry:
Not fast enough.