Using Syntax Styles in binary templates

I’m writing a binary template for a file format that contains many strings and numbers. I’d like to highlight them in the same text color as code.

However, it seems that the style= attribute in binary templates can only reference “Template Styles”. I think it could be useful to also access the “Syntax Styles” with this, e.g. style=string, style=type.definition or style=number, especially since the Template Styles all default to changing the background color which looks very noisy in the hex editor IMHO.

Is this already possibile in some way, have I missed something, or could this be considered for a future version?

There is no way currently for templates to access the syntax styles. This would be a nice feature to have in certain cases and we’ll see if we can add this to a future version. Note that you can change the Template Styles to color by foreground color instead of background color by using the ‘Theme/Colors’ page of the Options dialog.

Graeme
SweetScape Software

Thanks for the answer, looking forward to being able to reference those styles aswell in the future, if possible!