NO

Author Topic: Syntax highlighting  (Read 3050 times)

neo313

  • Guest
Syntax highlighting
« on: May 15, 2014, 02:56:30 PM »
Is there a way to customize syntax highlighting?

Specifically I would like to have my types and functions colored like the built in types and function which are colored differently.


Offline Bitbeisser

  • Global Moderator
  • Member
  • *****
  • Posts: 772
Re: Syntax highlighting
« Reply #1 on: May 15, 2014, 10:59:08 PM »
Is there a way to customize syntax highlighting?

Specifically I would like to have my types and functions colored like the built in types and function which are colored differently.
Of course. Tools->Options->Source

Ralf

neo313

  • Guest
Re: Syntax highlighting
« Reply #2 on: May 16, 2014, 12:29:27 AM »
Is there a way to customize syntax highlighting?

Specifically I would like to have my types and functions colored like the built in types and function which are colored differently.
Of course. Tools->Options->Source

Ralf

I know I can change the current color set, but that is not the issue.
Pelles only highlights built in(!) functions and types, not the functions and types I declared.

Here let me show an example so anyone can understand:

typedef int my_type ;
my_type var ;

void Function( void )
{
        printf("\n") ;
        Function() ;
}

Italic means that the word is highlighted with some color.

my_type , Function are not highlighted, how can I correct that?

Is there an add-in I can install, or can I write my own? I have no idea where to start, any guidelines or docs? ( Since pelles does have the ability to jump to the definition of a type or a function, this might be possible(?) )

Can I possibly modify a file containing a list of words that are highlighted, if there is such a file?
« Last Edit: May 16, 2014, 01:12:13 AM by neo313 »

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Syntax highlighting
« Reply #3 on: May 24, 2014, 08:32:33 PM »
Not possible today. Maybe in some future version...
/Pelle

neo313

  • Guest
Re: Syntax highlighting
« Reply #4 on: May 25, 2014, 12:06:57 AM »
Ok, thank you.