pkulchenko / ZeroBraneStudio

Lightweight Lua-based IDE for Lua with code completion, syntax highlighting, live coding, remote debugger, and code analyzer; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and other Lua interpreters on Windows, macOS, and Linux
http://studio.zerobrane.com/
Other
2.61k stars 519 forks source link

Request for nicer colors #1067

Closed Antix-Development closed 4 years ago

Antix-Development commented 4 years ago

Would it be possible to have more control over the rendering colors?

It would be nice if functions and variables could have their own colors, instead of just getting the default text color (which they seem to do currently).

pkulchenko commented 4 years ago

@Antix-Development, yes, all these colors can be configured and are documented in this section: https://studio.zerobrane.com/doc-styles-color-schemes. For example, putting the following fragment into the config file will make the function calls red:

styles.indicator.fncall = {st = wxstc.wxSTC_INDIC_TEXTFORE, fg = {240,0,0}}
editor.showfncall = true -- enable styling for function calls

The variables of different types need to be configured individually (local, global, and the rest, as documented).

Note that there is an open issue with function calls on table fields (#957).

Antix-Development commented 4 years ago

Awesome, thanks for explaining that Paul. I'll start messing about with it

pkulchenko commented 4 years ago

@Antix-Development, FYI: the issue in #957 with styling of function calls on fields should be fixed.