Sublime Forum

C++, colouring for properties and methods

#1

Hi all,

I want to change colours of class properties and class methods of C++ code.
I can set the colour for methods but not able to do so for class properties.

I’ve tried changing in tmtheme the ‘variable’, ‘variable.language’,
however these theme keys don’t change the colour of class properties.

Any suggestions please?

0 Likes

#2

up

0 Likes

#3

I don’t know C++ syntax but to find what you need, open commands panel, search for:
PackageResourceViewer: Open Resource
type: C++
open: C++.tmLanguage

In the file look at the patterns matching your need, let’s say u wanted to style ‘entity.name.function.c++’, go in your .tmTheme take ‘variable.language’ as a syntax example and style it.

0 Likes

#4

tks

0 Likes