vcharnahrebel / style-token

A sublime plugin that allows to highlight certain pieces of text with different colors (similar to notepad++ "Style token" functionality)
49 stars 10 forks source link

"StyleToken.sublime-settings" | only showing 5 colours #11

Open pnfnp opened 5 years ago

pnfnp commented 5 years ago

Hi there,

I would like to highlight (:joy: .. :thinking: bad joke :man_shrugging:) that the documentation mentions that is possible to get up to 10 colours

By default, contains 5 configured styles, but supports up to 10, check "StyleToken.sublime-settings"

but in the config file StyleToken.sublime-settings there is only 5 on commit b61a03af05f9220d7e0b4838bd24d60fb37fd745.

Which values do I need to use to get those 10 colours available? Example of config saved on `/home/{user}/.config/sublime-text-3/Packages/User/'

{
    "styletoken_style1": "string",
    "styletoken_style2": "invalid",
    "styletoken_style3": "variable",
    "styletoken_style4": "comment",
    "styletoken_style5": "variable.parameter",
    "styletoken_style6": "custom",
    "styletoken_style7": "string",
    "styletoken_style8": "mycustom",
    "styletoken_style9": "another",
    "styletoken_style10": "dont.know"
}

Nothing happened after I create the StyleToken.sublime-settings file with 10 styles.

Thanks very much for you time! :smile:

Facundo

Dajboj commented 2 years ago

You can use this

{
"styletoken_style1" : "string",
"styletoken_style2" : "invalid",
"styletoken_style3" : "variable",
"styletoken_style4" : "comment",
"styletoken_style5" : "variable.parameter",
"styletoken_style6" : "Number",
"styletoken_style7" : "support.function",
"styletoken_style8" : "entity.name.import",
"styletoken_style9" : "entity.name",
"styletoken_style0" : "entity.name.tag"
}

Or you can select in color scheme of sublime text other name or scope

        {
            "name": "Lambda arrow",
            "scope": "storage.type.function",
            "foreground": "#ff8f40"
        }
rafarada25 commented 2 years ago

I'm trying to get into the file, if I do shift+comm+P and do "View Package File" I can see "StyleToken.sublime-settings" listed and I can open it but not edit it.

Then I do search on Sublime to find the folder where it is and give me following

/Users/rafarada25/Library/Application Support/Sublime Text 3/Packages

I browse there and I cannot see that file.

Any advice for a Mac OS newbie?

I couldn't find the folder that was mentioned here before "/home/{user}/.config/sublime-text-3/Packages/User/"

Dajboj commented 7 months ago

It's easy, open the file that you cannot modify and click save or save as once you have saved it, right click anywhere in the file and select "open the containing folder" and close the file, then open the file again in the containing folder and you can edit it if it still doesn't let you copy the content open a new document in sublime text paste the content edit and click save as and select the file in the folder Done!