I would like to change the appearence of a certein typ of tags: all (and only) tags with numbers (i. e. “#Author/Book/125”) in it should appear in (for exemple) red color.
I do not know, if it is possible via custom-css (or otherwise). If so, could someone please help me?
It’s possible to do this to some extent with CSS, but it requiring the use of partial matching against the related HTML components.
For example, the tag #Author/Book/125 in live-preview has a span class of cm-tag-AuthorBook125, but in reading mode it’s a div class of tag-AuthorBook/125.
Which would match against any class containing Author somewhere. Selectors exists to match against start, end, white space separated stuff, and many more. See the link below for a full list of the various attribute selectors.
Do also note, that you might need to qualify the selector with more stuff to make it kick into action, as there might be other stuff dictating how to present a tag.
To match “tags with numbers”, tho…that’s at least 125 matches going by the example. Altho depending on the expected structure maybe you just need 10 matches (1 for each digit) surrounded by asterisks.
Or if the numbers are always nested as in the original example, and there is a limited set of tags that have numbers nested under them (as looks likely), and they only have numbers nested under them, I guess you could match against those tags each followed by a slash and an asterisk.