Syntax Coloring in µVision 2

May be a stupid question...

But, is it possible to add new syntax coloring in µVision ?

I saw that Keil give six different colors for background, keywords, string, .... So, is it possible to create a new type of coloring syntax ?

I saw that some .INI files in the µVision directory contain all keywords! Is there a place like this file to create a new syntax coloring ?

Why I would like to do that ? Because, I would like that C keywords and 8051 SFR's appears with 2 differents colors when i'm coding in C.

Parents
  • "I would like that C keywords and 8051 SFR's appears with 2 differents colors when i'm coding in C."

    Yes, that'd be good.
    I suggested this to Keil a while back, but no answer yet...

    I think you can just add keywords to the C51.INI file; eg, I think I once added defined, as uVision doesn't automatically highlight it!
    I think I just added

    defined=C
    in the [Keywords] section

    I had a few tries at getting different-coloured highlighting, but no luck :-(
    Probably easier to use CodeWright instead!

Reply
  • "I would like that C keywords and 8051 SFR's appears with 2 differents colors when i'm coding in C."

    Yes, that'd be good.
    I suggested this to Keil a while back, but no answer yet...

    I think you can just add keywords to the C51.INI file; eg, I think I once added defined, as uVision doesn't automatically highlight it!
    I think I just added

    defined=C
    in the [Keywords] section

    I had a few tries at getting different-coloured highlighting, but no luck :-(
    Probably easier to use CodeWright instead!

Children
More questions in this forum