How to color code folds created via code?
已回答
Hi,
i have a custom editor and i want to added some code folds via
editor.getFoldingModel().createFoldRegion()
the question now is, how can i color these folds when they are collapsed? Right now they are colored like normal text.
请先登录再写评论。
hi. The fold region colors are configured globally in settings|editor|Color scheme. THere's no way currently to color them individually.
Hi,
i have created a fold reagion, but this fold region is not colored in any way. I went into the settings and chose really bright colors, but its still not working:
If this helps, i added fold regions to the "DiffWindow" like this:
Do other folded regions in other files look blindingly red now?
I found the solution:
get the colorscheme, change it and then reapply it: