Highlighting special characters
-
Hi there,
I have a question about the following.
On my website I’m currently highlighting the Power Query M language with a custom brush. This language has certain specifics that need highlighting. Currently I have three different variables to highlight:
var funcs = ' #table number.from number.fromtext number.totext number.isnan var specials = 'null date number text time table' var keywords = 'each if then else type true false meta let in'
I have the following questions about this:
1.1. In the ‘var funcs’ part, everything is highlighted correctly, except for the functions starting with a #. In this case ‘#table’ does not get the correct highlighting. Can the plugin highlight functions containing #, and if so how?
1.2 If the previous is possible (highlighting #+ name) the following question arises. I would like to differentiate between: table and #table. One is in var funcs and the other in var specials. Those are used in different ways. One is an intitializer for a table, one if a data type. Can I apply an order in which highlighting takes place? Ideally the plugin would first highlight ‘#date’, and only then search for values that look like ‘date’
2.1. Is it possible to also highlight brackets like: ( ) and { } and [ ]?
2.2. If previous is possible, is it even possible to color nested brackets differently. So that users can easily identify which brackets refer to which branch in a statement? With a nested statement of 2 layers, the outer layer brackets could be yellow, the inner layer brackets could be pink for example.
Your response is highly appreciated!
The page I need help with: [log in to see the link]
- The topic ‘Highlighting special characters’ is closed to new replies.