Coloring Class Begin and End Keywords |
Post Reply |
Author | |
The General
Newbie Joined: 05 August 2012 Status: Offline Points: 4 |
Post Options
Thanks(0)
Posted: 05 August 2012 at 7:15pm |
Hi All,
Would like to know how to go about coloring the start and end keywords of a class. The below is a prime example: Private Sub ..... ..... End Sub Now each of those words is defined as a keyword and formatted properly on their own but when used to gether (and therefore qualify for a class sytart / end descriptor), the colorisation goes to the default (eg black). Naturally I cannot simply set the text forecolor for the class as this will color each word within the class (ie within the class start and end descriptors). The only way that I can see (which seems like overkill) is to define (eg) 'Private Sub' as it's own class, colorise that, do the same for 'End Sub' and then have another class which starts and ends with these classes. There must be an easier way I'm overlooking, right ?? Any and all help appreciated ! The General. |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Here is a very basic class to do this. You will also need those keywords defined in the keywords section if you want them colored when not used in a block or as they type them. lexClass: lexClass: lexClass: |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Attached updated vb.net style schema to your support ticket
|
|
The General
Newbie Joined: 05 August 2012 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
A little belated but thanks for the support.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |