From 0dac83f6c70cc124b8a1b3cdf910d38b5fd6268d Mon Sep 17 00:00:00 2001 From: ShalokShalom Date: Thu, 11 Dec 2025 13:45:10 +0100 Subject: [PATCH] Document subgroups and dynamic coloring feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added section on subgroups and dynamic coloring in colors.md. Please note, that I need the header to be able to link to this place. I want to do that specifically [here](https://github.com/zyedidia/micro/tree/master/runtime/syntax#using-with-colorschemes) since that one part of the documentation says which languages have already been ported, and they dont say how to port new languages. So this commit prepares to add a link there to this section. 👍🏻 --- runtime/help/colors.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/runtime/help/colors.md b/runtime/help/colors.md index c085919a93..bce92a95fb 100644 --- a/runtime/help/colors.md +++ b/runtime/help/colors.md @@ -206,6 +206,14 @@ be used. --- +### Subgroups and dynamic coloring + +Micro added recently the functionality to define the colors for the syntax highlighting in the colorscheme files. + +Please note, that not all highlighting files are using that right now, see a list of the supporting languages [here](https://github.com/zyedidia/micro/tree/master/runtime/syntax#using-with-colorschemes). + +You implement this functionality via subgroups. In the following, you can see how to implement these subgroups and the according files. + In addition to the main colorscheme groups, there are subgroups that you can specify by adding `.subgroup` to the group. If you're creating your own custom syntax files, you can make use of your own subgroups.