I'm trying to use and parse XML with JS and format and display it with HTML and CSS for the first time, and my XML sheet, "math_functions.xml", is a list of math operations and functions, listing their names, how to use them in an example expression, and their descriptions.
An example of the expression is "x + y" or "x % y" or "| x |" for addition, remainder, and absolute value.
I would like to make it so that when I print it out onto the web page, all the variables (e.g. "x" and "y") would be a different color than the operation or function symbols to distinguish both groups.
Is there a CSS selector that can select all of a certain text, like "x" and "y", inside an element?
I could use JS to go through each expression and make style each variable one at a time, but that would be much more inconvenient.
Thanks.