Author Topic: [REQUEST]Load .java file with C style code coloring (there's no coloring AT ALL)  (Read 4619 times)

Offline foldingBLACKlinesSUCK

  • Multiple posting newcomer
  • *
  • Posts: 29
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:

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Just add .java to the list of extensions for C/C++ syntax highlighting. (It's in the Editor settings.)
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline foldingBLACKlinesSUCK

  • Multiple posting newcomer
  • *
  • Posts: 29
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:

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
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.