Syntax highlighting malfunction

Asked by hooked

I use gedit for simple java programming and it has just recently stopped using the java syntax highlighting, rather it defaults to C. When I change it back in the preferences menu nothing happens. Any ideas would be greatly appreciated.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gedit Edit question
Assignee:
No assignee Edit question
Solved by:
hooked
Solved:
Last query:
Last reply:
Revision history for this message
Cesare Tirabassi (norsetto) said :
#1

gedit should automatically select the correct sintax highlight. I guess this is done either on extension or Magic Number.
For a new text you should use the wished View->Highlight Mode options.
I agree with you that the sintax highlighting tab in preferences now doesn't make much sense.....

Revision history for this message
Cesare Tirabassi (norsetto) said :
#2

Actually, it makes sense. From there you can change the behaviour (or perhaps create a new one, I never experimented with it) of the highlights but indeed not select it.

Revision history for this message
Best hooked (dhhook) said :
#3

Thanks!

Revision history for this message
burrashiva (burrashiva) said :
#4

Hi,

Why is that syntax highlighting NOT shown in Ubuntu/Kubuntu vi command?
I tried installing all vi/vim common and other available packages depending on vi to get this ...but could not succeed.

If I want syntax highlighting in vi in Ubuntu/Kubuntu, what do i do?
Could some help me ?

I see that in Mandrake/Redhat, the Syntax highlighting is by default active.
So, once we open a .f (fortran), or .C(C++) or .java, automa[tg]ically the highlighting is seen.

why not in Kubuntu?
I love Kubuntu though I was using others for past few years. Now I shifted to Kubuntu and I think it is for Good.
thanks alot.
Prasad.

Revision history for this message
Cesare Tirabassi (norsetto) said :
#5

Prasad,

please do not use other people questions.
If you have a question please post it as a new request for help. You will get the personal attention this deserves.

Thanks.