make Keywords to bold

Questions on using RSyntaxTextArea should go here.

Moderator: robert

make Keywords to bold

Postby Deepak » Thu Feb 25, 2010 4:50 am

Hi,

I need to bold the keywords, how i can do this. But the color remains to be same. Please explain with some code help.
Deepak
 

Re: make Keywords to bold

Postby robert » Thu Feb 25, 2010 1:33 pm

HI Deepak,

Check out this topic for how to change what colors and fonts are used for different Token types:

http://fifesoft.com/forum/viewtopic.php?f=10&t=283&sid=cbd92b396b4f6c825255bece9542d58c

To make a particular token type bold, give it a Font with the bold attribute set.
User avatar
robert
 
Posts: 797
Joined: Sat May 10, 2008 5:16 pm

Re: make Keywords to bold

Postby Deepak » Fri Feb 26, 2010 6:10 am

Thanks Robert, after posting that i got an idea, i am also implemented the same way u guided in the link, i use your help programs to change the Syntax Scheme.

But i have another requirement the variables that are declared with the static keywords that needs to be in the Italic. how i can do this.
Deepak
 

Re: make Keywords to bold

Postby robert » Sat Feb 27, 2010 10:39 pm

Unfortunately that would require semantic highlighting (understanding of the language being highlighted), which RSTA does not support.
User avatar
robert
 
Posts: 797
Joined: Sat May 10, 2008 5:16 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 4 guests

cron